/// <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); }
/// <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); }
/// <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) ); }