CollectionAssert.AreNotEqual Method

Include Protected Members
Include Inherited Members

Verifies that specified collections are not equal.

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

Overload List

  Name Description
Public methodStatic member AreNotEqual(ICollection, ICollection) Verifies that two specified collections are not equal. The assertion fails if the collections are equal.
Public methodStatic member AreNotEqual(ICollection, ICollection, IComparer) Verifies that two specified collections are not equal, using the specified method to compare the values of elements. The assertion fails if the collections are equal.
Public methodStatic member AreNotEqual(ICollection, ICollection, String) Verifies that two specified collections are not equal. The assertion fails if the collections are equal. Displays a message if the assertion fails.
Public methodStatic member AreNotEqual(ICollection, ICollection, IComparer, String) Verifies that two specified collections are not equal, using the specified method to compare the values of elements. The assertion fails if the collections are equal. Displays a message if the assertion fails.
Public methodStatic member AreNotEqual(ICollection, ICollection, String, array<Object[]) Verifies that two specified collections are not equal. The assertion fails if the collections are equal. Displays a message if the assertion fails, and applies the specified formatting to it.
Public methodStatic member AreNotEqual(ICollection, ICollection, IComparer, String, array<Object[]) Verifies that two specified collections are not equal, using the specified method to compare the values of elements. The assertion fails if the collections are equal. Displays a message if the assertion fails, and applies the specified formatting to it.

Top

See Also

Reference

CollectionAssert Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace