/// <summary>
 /// Performs equality checking -- the end of .To.Equal()
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <typeparam name="T">Type of object being tested</typeparam>
 public static IMore <T> Equal <T>(
     this ITo <T> continuation,
     T?expected
     ) where T : struct
 {
     return(continuation.Equal(expected, NULL_STRING));
 }
 /// <summary>
 /// Performs equality checking -- the end of .To.Equal()
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <typeparam name="T">Type of object being tested</typeparam>
 public static IMore <T> Equal <T>(
     this ITo <T> continuation,
     T expected
     )
 {
     return(continuation.Equal(expected, NULL_STRING));
 }
Example #3
0
 /// <summary>
 /// Performs equality checking -- the end of .To.Equal()
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <typeparam name="T">Type of object being tested</typeparam>
 public static void Equal <T>(
     this ITo <T> continuation,
     T?expected
     ) where T : struct
 {
     continuation.Equal(expected, NULL_STRING);
 }
Example #4
0
 /// <summary>
 /// Performs equality checking -- the end of .To.Equal()
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <typeparam name="T">Type of object being tested</typeparam>
 public static void Equal <T>(
     this ITo <T> continuation,
     T expected
     )
 {
     continuation.Equal(expected, NULL_STRING);
 }
 /// <summary>
 /// Performs equality checking -- the end of .To.Equal()
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <param name="customMessage">Custom message to add into failure messages</param>
 /// <typeparam name="T">Type of object being tested</typeparam>
 public static IMore <T> Equal <T>(
     this ITo <T> continuation,
     T?expected,
     string customMessage
     ) where T : struct
 {
     return(continuation.Equal(expected, () => customMessage));
 }
Example #6
0
 /// <summary>
 /// Performs equality checking -- the end of .To.Equal()
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Expected value</param>
 /// <param name="customMessage">Custom message to add into failure messages</param>
 /// <typeparam name="T">Type of object being tested</typeparam>
 public static void Equal <T>(
     this ITo <T> continuation,
     T?expected,
     string customMessage
     ) where T : struct
 {
     continuation.Equal(expected, () => customMessage);
 }