예제 #1
0
        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));
            }
        }
예제 #2
0
 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());
 }
예제 #4
0
 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());
 }