1 #ifndef _vector_test_h_ 2 #define _vector_test_h_ 3 4 #include <TestCase.h> 5 6 class VectorTest : public BTestCase { 7 public: 8 VectorTest(std::string name = ""); 9 10 static CppUnit::Test* Suite(); 11 12 void ConstructorTest1(); 13 void ConstructorTest2(); 14 void PushPopFrontTest(); 15 void PushPopBackTest(); 16 void InsertTest(); 17 void RemoveTest(); 18 void EraseTest(); 19 void MakeEmptyTest(); 20 void IndexAccessTest(); 21 void FindTest(); 22 void IteratorTest(); 23 24 private: 25 template <class List> 26 void TestList(List &list, typename List::ValueType *values, int valueCount); 27 }; 28 29 #endif // _vector_test_h_ 30