Example #1
0
 /// <summary>
 /// Used to test exception messages
 /// </summary>
 /// <param name="src">Continuation carrying an exception message</param>
 /// <param name="search">String to look for in the message</param>
 /// <param name="customMessage">Custom message to add to a failure message</param>
 /// <returns>Another continuation so you can do .And() on it</returns>
 public static IStringPropertyContinuation Containing(
     this IExceptionPropertyContinuation <string> src,
     string search,
     string customMessage)
 {
     return(src.Containing(search, () => customMessage));
 }
Example #2
0
 /// <summary>
 /// Used to test exception messages
 /// </summary>
 /// <param name="src">Continuation carrying an exception message</param>
 /// <param name="search">String to look for in the message</param>
 /// <returns>Another continuation so you can do .And() on it</returns>
 public static IStringPropertyContinuation Containing(
     this IExceptionPropertyContinuation <string> src,
     string search)
 {
     return(src.Containing(search, NULL_STRING));
 }