Beispiel #1
0
 /// <summary>
 /// Tests if a string starts with an expected value
 /// </summary>
 /// <param name="start">Continuation to operate on</param>
 /// <param name="expected">String that is expected at the start of the Actual</param>
 public static IStringMore With(
     this IStringStart start,
     string expected
     )
 {
     return(start.With(expected, NULL_STRING));
 }
Beispiel #2
0
 /// <summary>
 /// Tests if a string starts with an expected value
 /// </summary>
 /// <param name="start">Continuation to operate on</param>
 /// <param name="expected">String that is expected at the start of the Actual</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 public static IStringMore With(
     this IStringStart start,
     string expected,
     string customMessage
     )
 {
     return(start.With(expected, () => customMessage));
 }