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

WIN_ASSERT_STRING_EQUAL

WIN_ASSERT_STRING_EQUAL

Synopsis

WIN_ASSERT_STRING_EQUAL allows value comparison of strings.

Declaration
void WIN_ASSERT_STRING_EQUAL( 
	__in PCSTR Expected, 
	__in PCSTR Actual,
	...
	);
	
void WIN_ASSERT_STRING_EQUAL( 
	__in PCWSTR Expected, 
	__in PCWSTR Actual,
	...
	);
			

WIN_ASSERT_STRING_EQUAL is overloaded to support both ANSI and UNICODE string comparisons.

Parameters

[in] Expected: The expected value.

[in] Actual: The actual value that is to be checked.

[in] ...: Optional: Message to be included in a failure report. This parameter allows printf-style formatters to be used, with the corresponding parameters being specified as subsequent arguments. The routine is overloaded and allows Message to be either a unicode or an ANSI string.

Requirements

Table 7.44. 

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

Requires cl version 14.00 (VisualStudio 2005) or better.