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

CFIX_ASSERT

CFIX_ASSERT

Synopsis

Use CFIX_ASSERT to assert any expression. If the expression evaluates to be false, the test case is considered to have failed. The report for a failed assertions includes the expression itself, file and line number as well as the function name.

Declaration
void CFIX_ASSERT( __in BOOL Expression );
				
Usage example
CFIX_ASSERT( a == 1 );
CFIX_ASSERT( !"This will always fail" );
				
Requirements

Table 7.1. 

 User ModeKernel Mode
Available since1.01.1
HeaderDeclared in cfix.hDeclared in cfix.h
LibraryLink to cfix.libLink to cfixkdrv.lib
DLLcfix.dllN/A
IRQLN/ACallable at any IRQL