Summary
In this chapter, we have increased our ability to become better C++ programmers by examining various OO class and component testing practices and strategies. Our primary goal is to ensure that our code is robust, well-tested, and can be deployed error-free to our various organizations.
We have considered programming idioms, such as following the canonical class form to ensure that our classes are complete and have expected behavior for construction/destruction, assignment, and usage in argument passing and as return values from functions. We have talked about what it means to create a robust class – one that follows the canonical class form that is also well-tested, platform-independent, and tested for fully constructed objects.
We have also explored how to create drivers to test individual classes or sets of related classes. We have established a checklist of items to test individual classes within a driver. We have looked more thoroughly at object relationships...