示例#1
0
 /// <summary>
 /// Does deep-equivalence testing on two collections, ignoring complex item referencing.
 /// Two collections are deep-equivalent when their object data matches, but not necessarily
 /// in order.
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Collection to match</param>
 /// <param name="customEqualityComparers">Custom implementations of IEqualityComparer&lt;TProperty&gt;
 /// to use when comparing properties of type TProperty</param>
 /// <typeparam name="T">Collection item type</typeparam>
 public static void To <T>(
     this ICollectionDeepEquivalent <T> continuation,
     IEnumerable <T> expected,
     params object[] customEqualityComparers
     )
 {
     continuation.To(expected, NULL_STRING, customEqualityComparers);
 }
示例#2
0
 /// <summary>
 /// Does deep-equivalence testing on two collections, ignoring complex item referencing.
 /// Two collections are deep-equivalent when their object data matches, but not necessarily
 /// in order.
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Collection to match</param>
 /// <param name="customMessage">Custom message to add when failing</param>
 /// <param name="customEqualityComparers">Custom implementations of IEqualityComparer&lt;TProperty&gt;
 /// to use when comparing properties of type TProperty</param>
 /// <typeparam name="T">Collection item type</typeparam>
 public static void To <T>(
     this ICollectionDeepEquivalent <T> continuation,
     IEnumerable <T> expected,
     string customMessage,
     params object[] customEqualityComparers
     )
 {
     continuation.To(expected, () => customMessage, customEqualityComparers);
 }