17 #ifndef TEST_CASE_GUARD 18 #define TEST_CASE_GUARD 42 virtual void run(
const char* nameOfTest,
bool printDots) = 0;
TestCase(const string &name)
Construct a test case with the given name.
This class represents a test or a suite of tests according to the Composite Pattern.
virtual bool accept(TestVisitor &visitor)
Makes the visitor visit this object as per the Visitor Pattern.
Represents a test case, which is usually created through a macro that defines a subclass.
This class is a visitor for classes derived from Test according to the Visitor Pattern.
virtual void run(const char *nameOfTest, bool printDots)=0
Run the test and record the name of the test as __nameOfTest.