CppUnit project page | FAQ | CppUnit home page |
00001 #ifndef CPPUNIT_TESTCASE_H 00002 #define CPPUNIT_TESTCASE_H 00003 00004 #include <cppunit/Portability.h> 00005 #include <cppunit/TestLeaf.h> 00006 #include <cppunit/TestAssert.h> 00007 #include <cppunit/TestFixture.h> 00008 #include <string> 00009 00010 #if CPPUNIT_NEED_DLL_DECL 00011 #pragma warning( push ) 00012 #pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z 00013 #endif 00014 00015 CPPUNIT_NS_BEGIN 00016 00017 00018 class TestResult; 00019 00020 00031 class CPPUNIT_API TestCase : public TestLeaf, 00032 public TestFixture 00033 { 00034 public: 00035 00036 TestCase( const std::string &name ); 00037 00038 TestCase(); 00039 00040 ~TestCase(); 00041 00042 virtual void run(TestResult *result); 00043 00044 std::string getName() const; 00045 00047 virtual void runTest(); 00048 00049 private: 00050 TestCase( const TestCase &other ); 00051 TestCase &operator=( const TestCase &other ); 00052 00053 private: 00054 const std::string m_name; 00055 }; 00056 00057 CPPUNIT_NS_END 00058 00059 #if CPPUNIT_NEED_DLL_DECL 00060 #pragma warning( pop ) 00061 #endif 00062 00063 #endif // CPPUNIT_TESTCASE_H
|
hosts this site. |
Send comments to: CppUnit Developers |