![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cUnitTest.h>
Public Member Functions | |
void | RunUnitTest () |
Create and run the unit test cUnitTest. More... | |
Public Attributes | |
const LOGCHAR_t * | m_pszTestName |
Display Name for the unit test. More... | |
const UNITTEST_LEVEL_TYPE | m_nTestLevel |
at what level does this test run? More... | |
Protected Member Functions | |
cUnitTestRegister (const LOGCHAR_t *pszTestName, UNITTEST_LEVEL_TYPE nTestLevel=UNITTEST_LEVEL_Core) | |
virtual | ~cUnitTestRegister () |
virtual cUnitTest * | CreateUnitTest ()=0 |
must implement this. More... | |
Hold the registration for a type of cUnitTest. ALWAYS constructed in 'C' static init code. The cUnitTest itself is constructed on run demand. Assume static init is NOT multi threaded so no thread locking is required.
|
protected |
May be constructed in 'C' static init code. register myself in the unit test list.
|
protectedvirtual |
When a module is released, all its unit tests MUST be destroyed.
|
protectedpure virtual |
must implement this.
Implemented in Gray::cUnitTestRegisterT< T >.
void Gray::cUnitTestRegister::RunUnitTest | ( | ) |
const UNITTEST_LEVEL_TYPE Gray::cUnitTestRegister::m_nTestLevel |
at what level does this test run?
const LOGCHAR_t* Gray::cUnitTestRegister::m_pszTestName |
Display Name for the unit test.