00001 #ifndef CPPUNIT_TEST_H
00002 #define CPPUNIT_TEST_H
00003
00004 #include <string>
00005
00006 namespace CppUnit {
00007
00008 class TestResult;
00009
00021 class Test
00022 {
00023 public:
00024 virtual ~Test () {};
00025
00028 virtual void run (TestResult *result) = 0;
00029
00036 virtual int countTestCases () const = 0;
00037
00043 virtual std::string getName () const = 0;
00044
00052 virtual std::string toString () const = 0;
00053
00054
00055 };
00056
00057
00058 }
00059
00060 #endif // CPPUNIT_TEST_H
00061