TestCase Class Reference
A single test object.
More...
#include <TestCase.h>
Inheritance diagram for TestCase:
List of all members.
Public Member Functions
Constructs a test case.
Constructs a test case for a suite.
Destructs a test case.
Run the test and catch any exceptions that are triggered by it.
Returns the name of the test case.
FIXME: this should probably be pure virtual.
Private Member Functions
Private Attributes
Detailed Description
A single test object.
This class is used to implement a simple test case: define a subclass that overrides the runTest method.
You don't usually need to use that class, but TestFixture and TestCaller instead.
You are expected to subclass TestCase is you need to write a class similiar to TestCaller.
Constructor & Destructor Documentation
TestCase::TestCase
(
const std::string &
name
)
Constructs a test case.
- Parameters:
-
name the name of the TestCase.
Constructs a test case for a suite.
- Deprecated:
- This constructor was used by fixture when TestFixture did not exist. Have your fixture inherits TestFixture instead of TestCase.
TestCase::TestCase
(
const
TestCase &
other
)
[private]
Member Function Documentation
std::string TestCase::getName
(
)
const [virtual]
void TestCase::run
(
TestResult *
result
)
[virtual]
Run the test and catch any exceptions that are triggered by it.
Implements Test.
void TestCase::runTest
(
)
[virtual]
Member Data Documentation
The documentation for this class was generated from the following files: