public void GetFormatted_PassStopWords_ReturnsEmptyString(string originalWord, string[] stopWords) { wordFormatter = new SimpleWordFormatter(stopWords); wordFormatter.GetFormatted(originalWord).Should() .BeEmpty($"Word {originalWord} is in stop-words list: {string.Join(", ", stopWords)}"); }
public string GetFormatted_PassWordsWithWhitespaces_ReturnsWordBeforeFirstWhitespace(string originalWord) { return(wordFormatter.GetFormatted(originalWord)); }