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 | |
|---|---|---|
|
IsNotNull(Object) | Verifies that the specified object is not null. The assertion fails if it is null. |
|
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. |
|
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. |