Assert.IsNull Method (Object)

Verifies that the specified object is null. The assertion fails if it is not null.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public static void IsNull(
	Object value
)

Parameters

value
Type: Object

The object to verify is null.

ExceptionCondition
AssertFailedException

value is not null.

Show: