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: System.Object

The object to verify is not null.

ExceptionCondition
AssertFailedException

value is null.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft