コード例 #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 AssertContainsExactly <TItem>(this IEnumerable <TItem> items, params TItem[] expected)
 {
     CollectionAssertExtensions.AreEqual(expected, items.ToArray());
 }
コード例 #3
0
 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)
 {
     CollectionAssertExtensions.AreEqual(expected, actual, new DefaultComparer());
 }
コード例 #5
0
 public static void AreEqual(ICollection expected, ICollection actual, IComparer comparer)
 {
     CollectionAssertExtensions.AreEqual(expected, actual, comparer, string.Empty);
 }