Target class and test class

The Test framework allows you to evaluate the behavior of a target class. A target class is the class in your program that you want to test to see if it is performing the way you expect. You write a test class, derived from a Test framework class, that performs the actual evaluation of whether the target class is performing as expected.

A significant advantage of using the Test framework is that you do not have to make changes to the target class code to test its behavior. The code for the target class is independent of the test class. The test class works by creating an instance of the target class and determining whether the instance works as expected.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker