public static void Containing(this IExceptionMessageContinuation src, string search) { src.AddMatcher(s => { var passed = s?.Contains(search) ?? false; return(new MatcherResult( passed, StringExpectationMethods.MessageForContainsResult( passed, s, search ) )); }); }
public static void Contain( this IContinuation <string> continuation, string search ) { continuation.AddMatcher(s => { var passed = s?.Contains(search) ?? false; return(new MatcherResult( passed, StringExpectationMethods.MessageForContainsResult( passed, s, search ) )); }); }