CppUnit project page | FAQ | CppUnit home page

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

TestCase.h
Go to the documentation of this file.

    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
    00011 CPPUNIT_NS_BEGIN
    00012
    00013
    00014 class TestResult;
    00015
    00016
    00027 class CPPUNIT_API TestCase : public TestLeaf,
    00028                              public TestFixture
    00029 {
    00030 public:
    00031
    00032     TestCase( const std::string &name );
    00033
    00034     TestCase();
    00035
    00036     ~TestCase();
    00037
    00038     virtual void run(TestResult *result);
    00039
    00040     std::string getName() const;
    00041
    00043     virtual void runTest();
    00044
    00045 private:
    00046     TestCase( const TestCase &other );
    00047     TestCase &operator=( const TestCase &other );
    00048
    00049 private:
    00050     const std::string m_name;
    00051 };
    00052
    00053 CPPUNIT_NS_END
    00054
    00055 #endif // CPPUNIT_TESTCASE_H

| hosts this site. |  | Send comments to: CppUnit Developers