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) }
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"); }
static void _failCharMethod() { HasTheDestructorBeenCalledChecker checker; CHECK_EQUAL_C_CHAR('a', 'c'); }
void _failCharMethod() { CHECK_EQUAL_C_CHAR('a', 'c'); }