SmartSockets .NET Class Library

Tut.expect Method 

Test a condition for truth, prints a warning message if the it fails. Will optionally throw a TipcAssertionException as well if the ExpectAborts property is set.

public static void expect(
   bool test,
   string m
);

Parameters

test
the boolean to check
m
an explanatory message to print with the warning. This is mandatory, since there is no other way of determining where or why the warning occurred.

Exceptions

Exception TypeCondition
TipcAssertionException If test fails and ExpectAborts property is True. (note: TipcAssertionException is a runtime exception)

See Also

Tut Class | Tut Members | TIBCO.SMARTSOCKETS Namespace | ExpectAborts


Copyright © TIBCO Software Inc. All rights reserved