Summary
Asserts that an object is not
null
. If the object is null
a TCLite.AssertionException
is thrown, ending the running
test and reporting it as a Failure.
Syntax
public static void IsNotNull(object anObject, string message = null, params object[] args)
Parameters
Name | Type | Description |
---|---|---|
anObject | object | The object that is to be tested |
message | string | The message to display in case of failure |
args | object[] | Array of objects to be used in formatting the message |
Return Value
Type | Description |
---|---|
void |