Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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: System.Object

The object to verify is not null.

ExceptionCondition
AssertFailedException

value is null.

Show:
© 2015 Microsoft