public void CountWords_ListContainsStopWords_ReturnsProperCountExcludingStopWords()
        {
            ArticleSummarizer.LoadStopWords();

            var words = new List <string>(new string[] { "test", "test", "trial", "a", "an", "the" });
            var expectedWordCounts = new Dictionary <string, int>
            {
                { "test", 2 },
                { "trial", 1 }
            };

            var result = ArticleSummarizer.CountWords(words);

            Assert.That(result, Is.EqualTo(expectedWordCounts));
        }
        public void CountWords_ListOfNonStopWords_ReturnsProperCount()
        {
            ArticleSummarizer.LoadStopWords();

            var words = new List <string>(new string[] { "test", "test", "trial" });
            var expectedWordCounts = new Dictionary <string, int>
            {
                { "test", 2 },
                { "trial", 1 }
            };

            var wordCounts = ArticleSummarizer.CountWords(words);

            Assert.That(wordCounts, Is.EqualTo(expectedWordCounts));
        }