/// <summary> /// Tests the string's length against the expected value /// </summary> /// <param name="have">Continuation to operate on</param> /// <param name="expected">Expected string length</param> /// <param name="customMessage">Custom message generator</param> /// <returns>More continuation -- continue with more assertions!</returns> public static IStringMore Length( this IHave <string> have, int expected, string customMessage) { return(have.Length(expected, () => customMessage)); }
/// <summary> /// Tests the string's length against the expected value /// </summary> /// <param name="have">Continuation to operate on</param> /// <param name="expected">Expected string length</param> /// <returns>More continuation -- continue with more assertions!</returns> public static IStringMore Length( this IHave <string> have, int expected) { return(have.Length(expected, NULL_STRING)); }