Testing C++ classes
Imran Bashir, Anita Goel · 2002
We present a semi-exhaustive approach to testing of a C++ class as a unit of testing. The general approach is outlined by an algorithm. This approach determines the correctness of a class by considering the manipulation of each of its data members by all possible sequences of member functions of the class. Member functions manipulating a data member are divided into different categories and each category is tested individually. A preliminary analysis of the algorithm determines the maximum number of test cases required for a given class.