This topic has not yet been rated - Rate this topic

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ