Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Assert.AreNotSame Method

 

Verifies that specified object variables refer to different objects.

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAreNotSame(Object, Object)

Verifies that two specified object variables refer to different objects. The assertion fails if they refer to the same object.

System_CAPS_pubmethodSystem_CAPS_staticAreNotSame(Object, Object, String)

Verifies that two specified object variables refer to different objects. The assertion fails if they refer to the same object. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreNotSame(Object, Object, String, Object[])

Verifies that two specified object variables refer to different objects. The assertion fails if they refer to the same object. Displays a message if the assertion fails, and applies the specified formatting to it.

Return to top
Show: