コード例 #1
0
 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
                        )
                    ));
     });
 }
コード例 #2
0
 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
                        )
                    ));
     });
 }