Ejemplo n.º 1
0
 /// <summary>
 /// Performs reference equality checking between your actual and the provided expected value
 /// </summary>
 /// <param name="be">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <typeparam name="T">Type of the object being tested</typeparam>
 public static IMore <T> Be <T>(
     this ITo <T> be,
     object expected,
     string customMessage)
 {
     return(be.Be(expected, () => customMessage));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Performs reference equality checking between your actual and the provided expected value
 /// </summary>
 /// <param name="be">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <typeparam name="T">Type of the object being tested</typeparam>
 public static void Be <T>(
     this ITo <T> be,
     object expected,
     string customMessage)
 {
     be.Be(expected, () => customMessage);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Performs reference equality checking between your actual and the provided expected value
 /// </summary>
 /// <param name="be">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <typeparam name="T">Type of the object being tested</typeparam>
 public static IMore <T> Be <T>(
     this ITo <T> be,
     object expected)
 {
     return(be.Be(expected, NULL_STRING));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Performs reference equality checking between your actual and the provided expected value
 /// </summary>
 /// <param name="be">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <typeparam name="T">Type of the object being tested</typeparam>
 public static void Be <T>(
     this ITo <T> be,
     object expected)
 {
     be.Be(expected, NULL_STRING);
 }