示例#1
0
 /// <summary>
 /// Tests if the provided key value matches the expected value
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Value to match on</param>
 /// <typeparam name="T">Type of the values</typeparam>
 public static void Value <T>(
     this IDictionaryValueWith <T> continuation,
     T expected
     )
 {
     continuation.Value(expected, NULL_STRING);
 }
示例#2
0
 /// <summary>
 /// Tests if the provided key value matches the expected value
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Value to match on</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <typeparam name="T">Type of the values</typeparam>
 public static void Value <T>(
     this IDictionaryValueWith <T> continuation,
     T expected,
     string customMessage
     )
 {
     continuation.Value(expected, () => customMessage);
 }
示例#3
0
 /// <summary>
 /// Tests if the provided key value matches the expected value
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="expected">Value to match on</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <typeparam name="T">Type of the values</typeparam>
 public static void Value <T>(
     this IDictionaryValueWith <T> continuation,
     T expected,
     Func <string> customMessage
     )
 {
     continuation.AddMatcher(
         GenerateEqualityMatcherFor(expected, customMessage)
         );
 }