#include <unittest.hpp>
The base class for unit testing. Children of UnitTest are instanced by the UNITTEST() macro.
Instances a test. An instanced test is automatically executed when the RunAllTests() function is called.
- Parameters
-
sTestName | A string representing the name of this test. |
virtual void FreeInternals |
( |
| ) |
|
|
virtual |
This function is called during ShutdownTests(). Its purpose is to free the internal structures allocated by the UnitTest without freeing the UnitTest itself. Microsoft's leak detector will flag the internals of a UnitTest as a leak unless these internals are explicitly destroyed prior to exit().
Returns the name of this UnitTest provided at construction time.
Child classes of UnitTest() must provide a RunTest() function. A RunTest() function must initialize logog, conduct its tests, and return 0 if the test was successful, a non-0 value otherwise. If any RunTest() function returns any value other than zero, then the main RunAllTests() function will return non zero as well.
The name of this particular test.
The documentation for this class was generated from the following file: