From 0c5051a8acf83fd77a6094177eb0711d3f90d997 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Mon, 11 Jun 2001 18:56:23 +0000 Subject: Examples/cppunittest/TestResultTest. examples/cppunittest/TestResultTest.*: renamed TestListenerTest.* * examples/cppunittest/*: added unit tests for: HelperMacros, TestAssert, TestCaller, TestCase, TestFailure, TestResult, TestSuite, TestDecoratorTest, TestSetUp, RepeatedTestTest, Orthodox, Exception. --- examples/cppunittest/TestDecoratorTest.h | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 examples/cppunittest/TestDecoratorTest.h (limited to 'examples/cppunittest/TestDecoratorTest.h') diff --git a/examples/cppunittest/TestDecoratorTest.h b/examples/cppunittest/TestDecoratorTest.h new file mode 100644 index 0000000..b795afd --- /dev/null +++ b/examples/cppunittest/TestDecoratorTest.h @@ -0,0 +1,39 @@ +#ifndef TESTDECORATORTEST_H +#define TESTDECORATORTEST_H + +#include +#include +class FailingTestCase; + + +class TestDecoratorTest : public CppUnit::TestCase +{ + CPPUNIT_TEST_SUITE( TestDecoratorTest ); + CPPUNIT_TEST( testCountTestCases ); + CPPUNIT_TEST( testRun ); + CPPUNIT_TEST( testGetName ); + CPPUNIT_TEST_SUITE_END(); + +public: + TestDecoratorTest(); + virtual ~TestDecoratorTest(); + + virtual void setUp(); + virtual void tearDown(); + + void testCountTestCases(); + void testRun(); + void testGetName(); + +private: + TestDecoratorTest( const TestDecoratorTest © ); + void operator =( const TestDecoratorTest © ); + +private: + CppUnit::Test *m_decorator; + FailingTestCase *m_test; +}; + + + +#endif // TESTDECORATORTEST_H -- cgit v1.2.1