Export (0) Print
Expand All

Assert.IsNotNull Method (Object)

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

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

public static void IsNotNull(
	Object value
)

Parameters

value
Type: Object

The object to verify is not null.

ExceptionCondition
AssertFailedException

value is null.

Show:
© 2014 Microsoft