Esempio n. 1
0
TEST(TestHarness_c, checkChar)
{
	CHECK_EQUAL_C_CHAR('a', 'a');
	fixture->setTestFunction(_failCharMethod);
	fixture->runAllTests();
	fixture->assertPrintContains("expected <a>\n	but was  <c>");
	fixture->assertPrintContains("arness_c");
	CHECK(!hasDestructorOfTheDestructorCheckedBeenCalled)
}
Esempio n. 2
0
TEST(TestHarness_c, checkChar)
{
	CHECK_EQUAL_C_CHAR('a', 'a');
	fixture->setTestFunction(_failCharMethod);
	fixture->runAllTests();
	fixture->assertPrintContains("expected <a>\n	but was  <c>");
	fixture->assertPrintContains("arness_c");
//	fixture->assertPrintContains("TestHarness_cTest.cpp");
}
Esempio n. 3
0
static void _failCharMethod()
{
	HasTheDestructorBeenCalledChecker checker;
	CHECK_EQUAL_C_CHAR('a', 'c');
}
Esempio n. 4
0
void _failCharMethod()
{
	CHECK_EQUAL_C_CHAR('a', 'c');
}