Visual Assert – The Unit Testing Add-In for Visual C++
cfix – C/C++ Unit Testing for Win32 and NT
 
 

TestFixture::SetUp

TestFixture::SetUp
Synopsis

This (static) method may be redefined in a test class to implement initialization of global resources. The method will be called only once per fixture.

Declaration
static void SetUp();
					
Remarks

If the setup method fails, none of the test methods will be invoked. The teardown method will not be invoked either.

[Note]Note
For certain initialization work, it may be more advantageous to use a before method.