/// <summary> /// Used to test exception messages /// </summary> /// <param name="src">Continuation containing exception message to test</param> /// <param name="test">Custom function to test the message -- return true if the test should pass</param> /// <param name="customMessage">Custom message to add to failure messages</param> /// <returns>Another continuation so you can do .And()</returns> public static IStringPropertyContinuation Matching( this IExceptionPropertyContinuation <string> src, Func <string, bool> test, string customMessage) { return(src.Matching(test, () => customMessage)); }
/// <summary> /// Used to test exception messages /// </summary> /// <param name="src">Continuation containing exception message to test</param> /// <param name="test">Custom function to test the message -- return true if the test should pass</param> /// <returns>Another continuation so you can do .And()</returns> public static IStringPropertyContinuation Matching( this IExceptionPropertyContinuation <string> src, Func <string, bool> test ) { return(src.Matching(test, NULL_STRING)); }