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

BEGIN_TEST

BEGIN_TEST

Synopsis

BEGIN_TEST introduces a routine that constitues a standalone test, i.e. a test that is not part of a fixture.

Declaration
BEGIN_TEST( Name )
			
Parameters

[in] Name Name of the test. The name must be a valid C++ identifier; it must follow the naming rules for functions.

Usage example
BEGIN_TEST( TestThrow )
{
    WIN_ASSERT_THROWS(
		RaiseSimpleException(), 
		SimpleException,
        _T( "Expecting SimpleException" ) );
}
END_TEST
			
[Note]Note
Note that END_TEST must be used to mark the end of the test.
Requirements

Table 7.54. 

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