Beispiel #1
0
        public void ContainOnlyWords_ThatPassAllFilters()
        {
            statisticsMaker = new StatisticsMaker(lemmatizer, new[] { filter1, filter2 });

            statisticsMaker.MakeStatistics(words)
            .Should().BeEmpty();
        }
Beispiel #2
0
        public void CallFilter_ForEveryWord()
        {
            statisticsMaker.MakeStatistics(words);

            Mock.Assert(() => filter1.Filter(Arg.IsAny <Lexem>()), Occurs.Exactly(words.Count()));
        }