Assert.AreSame Method
Verifies that specified object variables refer to the same object.
| Name | Description |
|---|---|
| Assert.AreSame (Object, Object) | Verifies that two specified object variables refer to the same object. The assertion fails if they refer to different objects. |
| Assert.AreSame (Object, Object, String) | Verifies that two specified object variables refer to the same object. The assertion fails if they refer to different objects. Displays a message if the assertion fails. |
| Assert.AreSame (Object, Object, String, Object[]) | Verifies that two specified object variables refer to the same object. The assertion fails if they refer to different objects. Displays a message if the assertion fails, and applies the specified formatting to it. |