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. |