October 2018
Beginner to intermediate
736 pages
17h 39m
English
Unit testing BaseOrder, according to the coverage test, is only going to be concerned with testing the customer property and whatever methods interact with that property. This is because BaseOrder inherits from HasProducts. Since none of the members of HasProducts have been overridden in BaseOrder, they are still owned by HasProducts, and have been tested accordingly already:

Like the testing processes for BaseProduct and HasProducts, testing BaseOrder requires the creation of a throwaway derived class that can be used to test method members. Since BaseOrder also expects a customer instance to be provided during object ...