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/ExceptionTest.h | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 examples/cppunittest/ExceptionTest.h (limited to 'examples/cppunittest/ExceptionTest.h') diff --git a/examples/cppunittest/ExceptionTest.h b/examples/cppunittest/ExceptionTest.h new file mode 100644 index 0000000..bc177e1 --- /dev/null +++ b/examples/cppunittest/ExceptionTest.h @@ -0,0 +1,43 @@ +#ifndef EXCEPTIONTEST_H +#define EXCEPTIONTEST_H + +#include + + +class ExceptionTest : public CppUnit::TestCase +{ + CPPUNIT_TEST_SUITE( ExceptionTest ); + CPPUNIT_TEST( testConstructor ); + CPPUNIT_TEST( testDefaultConstructor ); + CPPUNIT_TEST( testCopyConstructor ); + CPPUNIT_TEST( testAssignment ); + CPPUNIT_TEST( testClone ); + CPPUNIT_TEST( testIsInstanceOf ); + CPPUNIT_TEST_SUITE_END(); + +public: + ExceptionTest(); + virtual ~ExceptionTest(); + + virtual void setUp(); + virtual void tearDown(); + + void testConstructor(); + void testDefaultConstructor(); + void testCopyConstructor(); + void testAssignment(); + void testClone(); + void testIsInstanceOf(); + +private: + ExceptionTest( const ExceptionTest © ); + void operator =( const ExceptionTest © ); + void checkIsSame( CppUnit::Exception &e, + CppUnit::Exception &other ); + +private: +}; + + + +#endif // EXCEPTIONTEST_H -- cgit v1.2.1