1 2 #ifndef CPP_UNIT_EXAMPLETESTCASE_H 3 #define CPP_UNIT_EXAMPLETESTCASE_H 4 5 #include <cppunit/extensions/HelperMacros.h> 6 7 /* 8 * A test case that is designed to produce 9 * example errors and failures 10 * 11 */ 12 13 class ExampleTestCase : public CPPUNIT_NS::TestFixture 14 { 15 CPPUNIT_TEST_SUITE( ExampleTestCase ); 16 CPPUNIT_TEST( example ); 17 CPPUNIT_TEST( anotherExample ); 18 CPPUNIT_TEST( testAdd ); 19 CPPUNIT_TEST( testEquals ); 20 CPPUNIT_TEST_SUITE_END(); 21 22 protected: 23 double m_value1; 24 double m_value2; 25 26 public: 27 void setUp(); 28 29 protected: 30 void example(); 31 void anotherExample(); 32 void testAdd(); 33 void testEquals(); 34 }; 35 36 37 #endif 38