예제 #1
0
 /// <summary>
 /// Facilitates testing an exception message to end with another substring
 /// </summary>
 /// <param name="continuation"></param>
 /// <param name="search"></param>
 /// <returns></returns>
 public static IStringPropertyContinuation With(
     this IStringPropertyEndingContinuation continuation,
     string search
     )
 {
     return(continuation.With(search, null as string));
 }
예제 #2
0
 /// <summary>
 /// Facilitates testing an exception message to end with another substring
 /// </summary>
 /// <param name="continuation"></param>
 /// <param name="search"></param>
 /// <param name="customMessage"></param>
 /// <returns></returns>
 public static IStringPropertyContinuation With(
     this IStringPropertyEndingContinuation continuation,
     string search,
     string customMessage
     )
 {
     return(continuation.With(search, () => customMessage));
 }