ABSTRACT

Three examples will be used throughout Parts II and III to illustrate the various unit testing methods. They are: the triangle problem (a venerable example in testing circles); a logically complex function, NextDate; and an example that typifies MIS testing, known here as the commission problem. Taken together, these examples raise most of the issues that testing craftspersons will encounter at the unit level. The discussion of integration and system testing in Part IV uses three other examples: a simplified version of an automated teller machine (ATM), known here as the simple ATM system (SATM); the currency converter, an eventdriven application typical of graphical user interface (GUI) applications; and the windshield wiper control device from the Saturn automobile. Finally, an objectoriented version of NextDate is provided, called o-oCalendar, which is used to illustrate aspects of testing object-oriented software in Part V.