Example #1
0
        public void FilterStopWords_StopWordsRemoved()
        {
            string  pageContent  = "I am preparing the test";
            WebPage page         = PageFactory.PageFromText(pageContent);
            string  filteredText = PageUtility.FilterStopWords(page);

            var filteredPage = PageFactory.PageFromText(filteredText);

            Assert.IsFalse(PageUtility.ContainStopWords(filteredPage));
            Console.WriteLine(String.Format("Filtered Text: {0}", filteredPage.PageSource));
        }