The template class TestSuiteBuilder (see Figure C-32) is a helper class used to add tests to a TestSuite . It is used by the macros CPPUNIT_TEST_SUITE( ) and CPPUNIT_TEST_SUITE_END( ) .
TestSuiteBuilder belongs to the namespace CppUnit . It is declared and implemented in the file extensions/TestSuiteBuilder.h .
template<typename Fixture> class TestSuiteBuilder
Constructs a TestSuiteBuilder for a TestSuite .
Constructs a TestSuiteBuilder and a new TestSuite with the given name.
Adds test to the TestSuite .
Adds a TestCaller that calls the TestMethod .
Adds a TestCaller that calls the TestMethod in the context of the Fixture .
A template function to add a TestCaller that calls the TestMethod in the context of the Fixture . The TestMethod is expected to throw an Exception of type ExceptionType .
Returns a test name that incorporates the TestSuite name and methodName .
Returns the TestSuite for this TestSuiteBuilder .
Takes ownership of the TestSuite from the smart pointer m_suite .
A copy constructor declared private to prevent its use.
A copy operator declared private to prevent its use.
A smart pointer to the TestSuite for this TestSuiteBuilder ( private ).