In a file in your working folder, create the following
handle class for interactive testing.
At the command prompt, create a test case for interactive
testing.
Instantiate two handles.
Verify that the handle, h1
, is the
same as h1
.
Interactive verification passed.
Test that h1
is the same handle instance
as h2
.
Interactive verification failed.
---------------------
Framework Diagnostic:
---------------------
IsSameHandleAs failed.
--> Values do not refer to the same handle.
Actual Value:
ExampleHandle with no properties.
Expected Handle Object:
ExampleHandle with no properties.
Test that two arrays of handles are the same instances.
Interactive verification passed.
The arrays satisfy the constraint even though the elements within
a particular array are not the same instance as each other.
Verify that the constraint is not satisfied if it expects
a single handle and the actual value is an array of the same instances.
Interactive verification failed.
---------------------
Framework Diagnostic:
---------------------
IsSameHandleAs failed.
--> Sizes do not match.
Actual Value Size : [1 2]
Expected Handle Object Size : [1 1]
Actual Value:
1x2 ExampleHandle array with no properties.
Expected Handle Object:
ExampleHandle with no properties.
Similarly, the constraint is not satisfied a single handle
instance if it expects an array of handles.
Interactive verification failed.
---------------------
Framework Diagnostic:
---------------------
IsSameHandleAs failed.
--> Sizes do not match.
Actual Value Size : [1 1]
Expected Handle Object Size : [1 2]
Actual Value:
ExampleHandle with no properties.
Expected Handle Object:
1x2 ExampleHandle array with no properties.