Exemplo n.º 1
0
 /// <summary>
 /// Performs deep equality testing on two objects
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <param name="customEqualityComparers">Objects implementing IEqualityComparer&lt;TProperty&gt;
 /// for customising equality testing for properties of type TProperty</param>
 /// <typeparam name="T">Type of object</typeparam>
 public static void To <T>(
     this IDeepEqual <T> continuation,
     object expected,
     params object[] customEqualityComparers
     )
 {
     continuation.To(expected, MH.NULL_STRING, customEqualityComparers);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Performs deep equality testing on two objects
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <param name="customEqualityComparers">Objects implementing IEqualityComparer&lt;TProperty&gt;
 /// for customising equality testing for properties of type TProperty</param>
 /// <typeparam name="T">Type of object</typeparam>
 public static void To <T>(
     this IDeepEqual <T> continuation,
     object expected,
     string customMessage,
     params object[] customEqualityComparers
     )
 {
     continuation.To(expected, () => customMessage, customEqualityComparers);
 }