00001 #ifndef BVHNODETEST_H 00002 #define BVHNODETEST_H 00003 00004 #include "bvhnode.h" 00005 #include <cppunit/extensions/HelperMacros.h> 00006 #include <cppunit/portability/Stream.h> 00007 00009 template<class BASECLASS> 00010 class bvhnodeTest : public CPPUNIT_NS::TestFixture 00011 { 00012 CPPUNIT_TEST_SUITE( bvhnodeTest ); 00013 CPPUNIT_TEST( testIsValidNot ); 00014 CPPUNIT_TEST_SUITE_END(); 00015 protected: 00016 BASECLASS * m_baseclass; 00017 00018 public: 00019 bvhnodeTest() 00020 { 00021 } 00022 00023 int countTestCases () const 00024 { 00025 return 1; 00026 } 00027 00028 void setUp() 00029 { 00030 this->m_baseclass = new BASECLASS; 00031 } 00032 00033 void tearDown() 00034 { 00035 delete this->m_baseclass; 00036 } 00037 00038 void testIsValidNot() 00039 { 00040 CPPUNIT_ASSERT( !this->m_baseclass->IsValid() ); 00041 } 00042 }; 00043 00044 #endif
1.5.5