Example #1
0
        public void CountWordMetric_ShouldAssosiationWordAndWordPositionsCount(params string[] words)
        {
            var result = new CountWordMetric().GetMetric(words);

            foreach (var word in words)
            {
                result.Should().Contain(new KeyValuePair <string, double>(word, words.Where(w => w == word).Count()));
            }
        }