Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

tst_unit_test.cpp File Reference

#include "at_unit_test.h"
#include "at_assert.h"

Include dependency graph for tst_unit_test.cpp:

Include dependency graph

Compounds

class  TEST_ConstructorFailFixture
class  TEST_DestructorFailFixture
class  TEST_Fixture

Functions

 AT_TestArea (UnitTest,"Test area for unit test system")
 AT_DefineTest (BasicSucceedTest, UnitTest,"This unit test should succeed")
 AT_RegisterTest (BasicSucceedTest, UnitTest)
 AT_DefineTestLevel (BasicDefaultUnselected, UnitTest,"This unit test should not be selected by default", UnitTestTraits::TestSuccess, 5)
 AT_DefineTestLevel (BasicDefaultUnselectedFailure, UnitTest,"This unit test should not be selected by default but should fail when selected", UnitTestTraits::TestSuccess, 10)
 AT_DefineTestExpect (BasicFailTest, UnitTest,"This unit test should fail while running", UnitTestTraits::TestRunFailure)
 AT_DefineTestExpect (ConstructorFailTest, UnitTest,"This unit test should fail in the constructor", UnitTestTraits::TestConstructorFailure)
 AT_RegisterTest (ConstructorFailTest, UnitTest)
 AT_DefineTestExpect (DestructorFailTest, UnitTest,"This unit test should fail in the destructor", UnitTestTraits::TestDestructorFailure)
 AT_RegisterTest (DestructorFailTest, UnitTest)
 AT_TestArea (UnitTest_B,"B Test area for unit test system")
 AT_DefineTest (ABTest, UnitTest_B,"A second success test")
 AT_DefineTestExpect (AT_AbortFailTest, UnitTest,"This unit test should fail while running-testing AT_Abort", UnitTestTraits::TestRunFailure)
 AT_RegisterTest (AT_AbortFailTest, UnitTest)

Function Documentation

AT_DefineTest ABTest   ,
UnitTest_B   ,
"A second success test"   
 

AT_DefineTest BasicSucceedTest   ,
UnitTest   ,
"This unit test should succeed"   
 

AT_DefineTestExpect AT_AbortFailTest   ,
UnitTest   ,
"This unit test should fail while running-testing AT_Abort"   ,
UnitTestTraits::TestRunFailure   
 

AT_DefineTestExpect DestructorFailTest   ,
UnitTest   ,
"This unit test should fail in the destructor"   ,
UnitTestTraits::TestDestructorFailure   
 

AT_DefineTestExpect ConstructorFailTest   ,
UnitTest   ,
"This unit test should fail in the constructor"   ,
UnitTestTraits::TestConstructorFailure   
 

AT_DefineTestExpect BasicFailTest   ,
UnitTest   ,
"This unit test should fail while running"   ,
UnitTestTraits::TestRunFailure   
 

AT_DefineTestLevel BasicDefaultUnselectedFailure   ,
UnitTest   ,
"This unit test should not be selected by default but should fail when selected"   ,
UnitTestTraits::TestSuccess   ,
10   
 

AT_DefineTestLevel BasicDefaultUnselected   ,
UnitTest   ,
"This unit test should not be selected by default"   ,
UnitTestTraits::TestSuccess   ,
 
 

AT_RegisterTest AT_AbortFailTest   ,
UnitTest   
 

AT_RegisterTest DestructorFailTest   ,
UnitTest   
 

AT_RegisterTest ConstructorFailTest   ,
UnitTest   
 

AT_RegisterTest BasicSucceedTest   ,
UnitTest   
 

AT_TestArea UnitTest_B   ,
"B Test area for unit test system"   
 

AT_TestArea UnitTest   ,
"Test area for unit test system"   
 

Generated for Austria by doxygen and MakeXS at Sun Oct 24 17:35:34 PDT 2004