1 out of 2 rated this helpful - Rate this topic

Assert.IsNotNull Method

Verifies that a specified object is not a null reference (Nothing in Visual Basic).

Name Description
Assert.IsNotNull (Object) Verifies that the specified object is not a null reference (Nothing in Visual Basic). The assertion fails if it is a null reference (Nothing in Visual Basic).
Assert.IsNotNull (Object, String) Verifies that the specified object is not a null reference (Nothing in Visual Basic). The assertion fails if it is a null reference (Nothing in Visual Basic). Displays a message if the assertion fails.
Assert.IsNotNull (Object, String, Object[]) Verifies that the specified object is not a null reference (Nothing in Visual Basic). The assertion fails if it is a null reference (Nothing in Visual Basic). Displays a message if the assertion fails, and applies the specified formatting to it.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ