示例#1
0
 /// <summary>
 /// Tests whether the Actual string is matched by the given Regex
 /// </summary>
 /// <param name="matcher">Continuation to operate on</param>
 /// <param name="regex">Regex string to match with</param>
 /// <param name="customMessageGenerator">Generates a custom message to add to failure messages</param>
 /// <returns>More continuation for Actual string</returns>
 public static IStringMore Match(
     this IToAfterNot <string> matcher,
     string regex,
     Func <string> customMessageGenerator
     )
 {
     AddRegexMatcher(matcher, regex, customMessageGenerator);
     return(matcher.More());
 }