public void CustomPreprocessingSelect_Should() { string func(string s) => s + "ый"; wordPreprocessing.CustomPreprocessingSelect(func); var newWords = wordPreprocessing.Words.ToArray(); newWords.Length.Should().Be(words.Length); newWords.All(w => w.EndsWith("ый")).Should().BeTrue(); }