/// <summary> /// Tests if the value under test contains a given string. May be continued /// with ".And" /// </summary> /// <param name="continuation">Continuation to act on</param> /// <param name="search">String value to search for</param> /// <returns>IStringContainContinuation onto which you can chain .And</returns> public static IStringMore Contain( this ICanAddMatcher <string> continuation, string search ) { return(continuation.Contain(search, NULL_STRING)); }
/// <summary> /// Tests if the value under test contains a given string. May be continued /// with ".And" /// </summary> /// <param name="continuation">Continuation to act on</param> /// <param name="search">String value to search for</param> /// <param name="customMessage">Custom message to include in failure messages</param> /// <returns>IStringContainContinuation onto which you can chain .And</returns> public static IStringMore Contain( this ICanAddMatcher <string> continuation, string search, string customMessage ) { return(continuation.Contain(search, () => customMessage)); }