Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member AreEqual(ICollection, ICollection) Verifies that two specified collections are equal. The assertion fails if the collections are not equal.
Public method Static member AreEqual(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.
Public method Static member AreEqual(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.
Public method Static member AreEqual(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.
Public method Static member AreEqual(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.
Public method Static member AreEqual(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.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.