AreEqual Method

CollectionAssert.AreEqual Method

 

Verifies that specified collections are equal. Two collections are equal if they have the same elements in the same order and quantity. Elements are equal if their values are equal, not if they refer to the same object.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAreEqual(ICollection, ICollection)

Verifies that two specified collections are equal. The assertion fails if the collections are not equal.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(ICollection, ICollection, IComparer)

Verifies that two specified collections are equal, using the specified method to compare the values of elements. The assertion fails if the collections are not equal.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(ICollection, ICollection, IComparer, String)

Verifies that two specified collections are equal, using the specified method to compare the values of elements. The assertion fails if the collections are not equal. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(ICollection, ICollection, IComparer, String, Object[])

Verifies that two specified collections are equal, using the specified method to compare the values of elements. The assertion fails if the collections are not equal. Displays a message if the assertion fails, and applies the specified formatting to it.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(ICollection, ICollection, String)

Verifies that two specified collections are equal. The assertion fails if the collections are not equal. Displays a message if the assertion fails.

System_CAPS_pubmethodSystem_CAPS_staticAreEqual(ICollection, ICollection, String, Object[])

Verifies that two specified collections are equal. The assertion fails if the collections are not equal. Displays a message if the assertion fails, and applies the specified formatting to it.

Return to top
Show:
© 2016 Microsoft