示例#1
0
 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)}");
 }
示例#2
0
 public string GetFormatted_PassWordsWithWhitespaces_ReturnsWordBeforeFirstWhitespace(string originalWord)
 {
     return(wordFormatter.GetFormatted(originalWord));
 }