TestCase< F > Class Template Reference

A testcase is a simple test consisting of a test function that may or may not fail. More...

#include <unittest_decls.h>

Inheritance diagram for TestCase< F >:

BaseTest List of all members.

Public Member Functions

 TestCase (const std::string &n, void(F::*func)())
 TestCase constructor.
 TestCase (const TestCase &other)
 Copy constructor.
TestCase< F > * clone () const
 Virtual copy constructor.
void run (BaseGatherer &g)
 Runs the test reporting results to the provided gatherer.

Detailed Description

template<class F>
class TestCase< F >

A testcase is a simple test consisting of a test function that may or may not fail.


Constructor & Destructor Documentation

template<class F>
TestCase< F >::TestCase ( const std::string &  n,
void(F::*)()  func 
) [inline]

TestCase constructor.

Parameters:
n is the name of the test case
func is the function to be invoked by testing

template<class F>
TestCase< F >::TestCase ( const TestCase< F > &  other  )  [inline]

Copy constructor.

Parameters:
other is the TestCase to be copied


Member Function Documentation

template<class F>
TestCase< F > * TestCase< F >::clone (  )  const [inline, virtual]

Virtual copy constructor.

This might be quite memory intensive as it actually copies deep.

Returns:
an copy of this

Implements BaseTest.

template<class F>
void TestCase< F >::run ( BaseGatherer g  )  [virtual]

Runs the test reporting results to the provided gatherer.

Parameters:
g is the gatherer results are reported to

Implements BaseTest.


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1