Assert.

IsNull(object, string, object[]) Method

Summary

Asserts that an object is null. If the object is not null a TCLite.AssertionException is thrown, ending the running test and reporting it as a Failure.
Namespace
TCLite
Containing Type
Assert

Syntax

public static void IsNull(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