Go to the documentation of this file.
17 #ifndef TEST_SUITE_GUARD
18 #define TEST_SUITE_GUARD
TestSuite(const string &name)
Constructs a test suite with the given name.
This class is a visitor for classes derived from Test according to the Visitor Pattern.
vector< Test * >::iterator TestIterator
An iterator for the added tests.
virtual bool accept(TestVisitor &visitor)
Makes the visitor visit this object as per the Visitor Pattern.
TestIterator begin()
Returns an iterator to the beginning of the range of added tests.
Represents a collection of tests, be they individual tests or yet other collections of tests.
TestIterator end()
Returns an iterator just past the end of the range of added tests.
void sortTests()
Sorts the added tests in some canonical order.
void add(Test *test)
Adds a test to the test suite.
This class represents a test or a suite of tests according to the Composite Pattern.
vector< Test * > _tests
The collection of tests of added tests.