Webmaster  |  Imprint 
C++ Server Pages
Main  |  License  |  Documentation  |  Download 

RegisterTest Struct Template Reference

Registers tests to an application. More...

#include <cxxtools/unit/registertest.h>

List of all members.


Detailed Description

template<class TestT>
struct cxxtools::unit::RegisterTest< TestT >

Parameters:
TestT The type of test to register 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.

Copyright © 2008 The Tntnet Development Team
Tntnet 1.6