#ifndef CPPUNIT_TESTCASE_H
#define CPPUNIT_TESTCASE_H
#include <cppunit/Portability.h>
#include <cppunit/Test.h>
#include <cppunit/TestAssert.h>
#include <cppunit/TestFixture.h>
#include <string>
namespace CppUnit {
class TestResult;
class CPPUNIT_API TestCase : public Test,
public TestFixture
{
public:
TestCase( std::string Name );
TestCase();
~TestCase();
virtual void run(TestResult *result);
virtual int countTestCases() const;
std::string getName() const;
std::string toString() const;
virtual TestResult *run();
protected:
virtual void runTest();
TestResult *defaultResult();
private:
TestCase( const TestCase &other );
TestCase &operator=( const TestCase &other );
private:
const std::string m_name;
};
}
#endif