/* * InfoUnitTest.cpp * * Created on: Nov 25, 2009 * Author: heber */ using namespace std; #include #include #include #include #include #include "info.hpp" #include "infounittest.hpp" #include "log.hpp" #ifdef HAVE_TESTRUNNER #include "UnitTestMain.hpp" #endif /*HAVE_TESTRUNNER*/ /********************************************** Test classes **************************************/ // Registers the fixture into the 'registry' CPPUNIT_TEST_SUITE_REGISTRATION( InfoTest ); void InfoTest::setUp() { }; void InfoTest::tearDown() { logger::purgeInstance(); }; /** UnitTest for FunctionTest(). */ void InfoTest::FunctionTest() { const char *msg = __func__; class Info test(msg); CPPUNIT_ASSERT_EQUAL( msg , test.FunctionName ); CPPUNIT_ASSERT_EQUAL( 1, test.verbosity ); };