RegisterTest< TestT > Struct Template Reference

#include <Pt/Unit/RegisterTest.h>

Registers tests to an application. More...

Public Member Functions

 RegisterTest ()
 Constructor.
 

Detailed Description

template<class TestT>
struct Pt::Unit::RegisterTest< TestT >

Tests can be registered easily with the RegisterTest<> class template to an Unit::Application at program initialisation. A typical example looks like this:

class MyTest : public Unit::TestCase
{ ... };
RegisterTest<MyTest> _registerMyTest;

The constructor of the RegisterTest class template will register an instance of its template parameter to the application.