This topic has not yet been rated - Rate this topic

Assert.IsNotNull Method

Verifies that a specified object is not null.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

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