You must specify the following items when you use the QuickWellBehavedObjectTestMacro.
The following line shows a sample of how to use the macro:
The following example shows the command for a class that creates the target object using the empty constructor:QuickWell.BehavedObjectTestMacro(TWellbehavedObjectTest, TSampleObject, (1), (2));
The following table lists the protocol quick test macros syntax and shows an example.QuickWellBehavedObjectTestMacro(TWellBehavedObjectTest, TSampleObject, , (2));
| Protocol quick test macro | Description |
| QuickCopyTest | Tests copying of the target class using the global Copy function. Uses TOperatorComparator for the test. |
| QuickCopyTestMacro(testClass, targetClass, parameterList) | |
Example:
|
|
| QuickFlattenResurrectTest | Tests the flattening and resurrecting of the target object using the global Flatten and Resurrect functions. Uses TOperatorComparator for the test. |
| QuickFlattenRessurectTestMacro(testClass, targetClass, parameterList) | |
Example:
|
|
| QuickStreamTest | Tests streaming of the target object. Uses the TOperatorComparator and TMonomorphicStreamer for the test. |
| QuickStreamTestMacro(testClass, targetClass, parameterList) | |
Example:
|
|
| QuickPrimitiveComparisonTest | |
| Tests the constructor, destructor, copy constructor, and assignment operator for a concrete class only. Uses TOperatorComparator for the test. | |
| TPrimitiveComparisonTestOfInterfaceMacro(testClass, targetClass) | |
Example:
|
|
| QuickWellBehavedObjectTest | |
| Creates and performs the TCopyTestOf, TStreamTestOf, TFlattenResurrectTestOf, and TPrimitiveComparisonTestOf. Turn off the TPrimitiveComparisonTestOf by specifying -p after the -o option when you use RunTest. Uses TOperatorComparator and TMonomorphicStreamer for the test. | |
| QuickWellBehavedObjectTestOfInterfaceMacro(testClass, targetClass, parameterList, unequalParameterList) | |
Example:
|
|