Ejemplo n.º 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));
            }
        }
Ejemplo n.º 2
0
 public static void AreEqual(ICollection expected, ICollection actual)
 {
     CollectionAssertExtensions.AreEqual(expected, actual, new DefaultComparer());
 }
 public static void AssertContainsExactly <TItem>(this IEnumerable <TItem> items, params TItem[] expected)
 {
     CollectionAssertExtensions.AreEqual(expected, items.ToArray());
 }
Ejemplo n.º 4
0
 public static void AreEqual(ICollection expected, ICollection actual, IComparer comparer)
 {
     CollectionAssertExtensions.AreEqual(expected, actual, comparer, string.Empty);
 }
 public static void AssertContainsInAnyOrder <TItem>(this IEnumerable <TItem> items, params TItem[] expected)
 {
     CollectionAssertExtensions.AreEquivalent(expected, items.ToArray());
 }