Menu

[r4]: / trunk / cppunit / cppunit / Test.h  Maximize  Restore  History

Download this file

33 lines (21 with data), 610 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CPPUNIT_TEST_H
#define CPPUNIT_TEST_H
#include <string>
namespace CppUnit {
class TestResult;
/**
* A Test can be run and collect its results.
* \see TestResult.
*
*/
class Test
{
public:
virtual ~Test () {};
virtual void run (TestResult *result) = 0;
virtual int countTestCases () const = 0;
virtual std::string toString () const = 0;
virtual std::string getName () const = 0;
};
} // namespace CppUnit
#endif // CPPUNIT_TEST_H
MongoDB Logo MongoDB