TestFixture Class Reference

#include <Pt/Unit/TestFixture.h>

Fixture interface for tests.

Inherited by TestCase, and TestSuite.

Public Member Functions

virtual ~TestFixture ()
 Destructor.
 
virtual void setUp ()
 Set up conText before running a test. More...
 
virtual void tearDown ()
 Clean up after the test run. More...
 

Member Function Documentation

virtual void setUp ( )
virtual

This function is called before each registered tester function is invoked. It is meant to initialize any required resources.

Reimplemented in TestSuite, and TestCase.

virtual void tearDown ( )
virtual

This function is called after each registered tester function is invoked. It is meant to remove any resources previously initialized in TestCase::setUp.

Reimplemented in TestSuite, and TestCase.