public static void AreEqual(ICollection expected, ICollection actual, IComparer comparer, string message) { string reason; if (!CollectionAssertExtensions.AreCollectionsEqual(expected, actual, comparer, out reason)) { throw new AssertFailedException(string.Format(CultureInfo.CurrentCulture, "{0}({1})", message, reason)); } }
public static void AreEqual(ICollection expected, ICollection actual, string message) { CollectionAssertExtensions.AreEqual(expected, actual, new DefaultComparer(), message); }
public static void AssertContainsInAnyOrder <TItem>(this IEnumerable <TItem> items, params TItem[] expected) { CollectionAssertExtensions.AreEquivalent(expected, items.ToArray()); }
public static void AreEqual(ICollection expected, ICollection actual, IComparer comparer) { CollectionAssertExtensions.AreEqual(expected, actual, comparer, string.Empty); }
public static void AssertContainsExactly <TItem>(this IEnumerable <TItem> items, params TItem[] expected) { CollectionAssertExtensions.AreEqual(expected, items.ToArray()); }