SETUP
Used to implement a setup routine. This routine will be called once per test routine, before the test routine itself is invoked. As such, setup routines should be used to initialize any state (i.e. static variables, environment) required by the test routines.
Using SETUP to implement a setup routine for a fixture is optional. Note, however, that at most one setup routine may be defined per fixture.
![]() | Note |
---|---|
WinUnit setup routines correspond to and have the same semantics as before routines in the cfix API. |
[in] FixtureName Name of the fixture to assign the setup routine to. The fixture (and its name) must have been defined previously using FIXTURE.