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

CFIXCC_METHOD

CFIXCC_METHOD

Synopsis

Used to add a test method to the fixture. CFIXCC_METHOD may be used any number of times per fixture.

Declaration
CFIXCC_METHOD( Method )
				

Test methods must have the following signature:

void TestMethod();
				
Usage example
#include <cfixcc.h>

class SimpleFixture : public cfixcc::TestFixture
{
public:
  void Method01() 
  {
	...
  }

  void Method02() 
  {
	...
  }
};

CFIXCC_BEGIN_CLASS( SimpleFixture )
  CFIXCC_METHOD( Method01 )
  CFIXCC_METHOD( Method02 )
CFIXCC_END_CLASS()
				
Requirements

Table 7.39. 

 User ModeKernel Mode
Available since1.2N/A
HeaderDeclared in cfixcc.hN/A
LibraryLink to cfix.libN/A
DLLcfix.dllN/A
IRQLN/AN/A