Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

TestCaseRootObject_2.cpp

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // TestCaseRootObject_2.cpp 00005 // 00006 // Version 1.1 00007 // Date 13.04.03 00008 // Author A. Pasetti (P&P Software) 00009 00010 #include "../GeneralInclude/CompilerSwitches.h" 00011 #include "../GeneralInclude/ClassId.h" 00012 #include "../Base/CC_RootObject.h" 00013 #include "TestCaseRootObject_2.h" 00014 00015 TestCaseRootObject_2::TestCaseRootObject_2(void) : 00016 TestCaseGenericSetUp(ID_ROOTOBJECT*10+2,"TestCaseRootObject_2") { 00017 return; 00018 } 00019 00020 void TestCaseRootObject_2::runTestCase(void) { 00021 00022 CC_RootObject* pr1 = new CC_RootObject(); 00023 CC_RootObject* pr2 = new CC_RootObject(); 00024 CC_RootObject* pr3 = new CC_RootObject(); 00025 00026 if ( pr1->getClassId() != ID_ROOTOBJECT ) 00027 { setTestResult(TEST_FAILURE, "Incorrect setting of class identifier"); 00028 return; 00029 } 00030 00031 if ( pr2->getClassId() != pr1->getClassId() ) 00032 { setTestResult(TEST_FAILURE, "Incorrect setting of class identifier"); 00033 return; 00034 } 00035 00036 if ( pr3->getClassId() != pr2->getClassId() ) 00037 { setTestResult(TEST_FAILURE, "Incorrect setting of class identifier"); 00038 return; 00039 } 00040 00041 setTestResult(TEST_SUCCESS,"Test Successful"); 00042 return; 00043 }
Copyright 2003 P&P Software GmbH - All Rights Reserved