TTest class

TTest is an abstract base class. Derive your test from this class to determine whether a class you have created works the way you expect. TTest contains a Test member function that you must override with the code that represents your decision function. A decision function is code you write that calls SetSuccess with either True or False when you test a specific condition.

When you declare a derived class of TTest to be a friend of the target class, the derived TTest class can access all the private interfaces of the target class for internal testing purposes.


[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