Beispiel #1
0
        public void DeleteStopWord_WorksCorrectly()
        {
            var stopwords = new StopWords();
            var filter    = new StopWordsFilter(stopwords);
            var input     = new List <string> {
                "Abc", "of", "cba", "IN", "the", "car"
            };

            stopwords.Remove("iN");
            filter.Filter(input).Should().BeEquivalentTo(new List <string> {
                "abc", "in", "cba", "car"
            });
        }