Open timhall opened 9 years ago
This seems much more likely with the evented approach used in v2 and the Context
object proposed in #23 so this is seeming much more straightforward. Basically, it will open / copy the workbook before each test, pass it in as .Context("workbook")
, and close the workbook without saving after each test.
Dim Suite As New TestSuite
Dim Fixture As New WorkbookFixture
Fixture.Open "path/to/workbook.xlsm"
Fixture.ListenTo Suite
With Suite.Test("should open workbook")
.IsEqual .Context("workbook").Name, "workbook"
End With
Tasks:
AfterEach
to teardown workbook after each testBeforeEach
andAfterEach
methods to allow passing in workbook helper instanceWBProxy
andScenario
)WBProxy
in otherIWBProxy
implementations. (lots of overlap currently)BeforeEach
andAfterEach
goal:Causes an issue with current arguments implementation, since
ParamArray
cannot be used with otherOptional
variables (Instance
), butByRef
withBeforeEach
andAfterEach
is a goal, soParamArray
might not be useful anyways.