public static Ensurable <string> DoesNotMatch(this Ensurable <string> ensurable, string regexPattern, Func <Ensurable <string>, Exception> exceptionFactory) { return(ensurable.DoesNotMatch(new Regex(regexPattern), exceptionFactory)); }
public static Ensurable <string> DoesNotMatch(this Ensurable <string> ensurable, string regexPattern, string exceptionMessage = null) { return(ensurable.DoesNotMatch(new Regex(regexPattern), exceptionMessage)); }