예제 #1
0
        public void TestRemoveStopWords()
        {
            StopWords stop = new StopWords();

            string test           = "This is a test string";
            string exceptedResult = "test string";
            string actualResult   = StopWords.RemoveStopwords(test);

            Console.WriteLine("Expected: " + exceptedResult);
            Console.WriteLine("Result: " + actualResult);

            Assert.AreEqual(exceptedResult, actualResult, "Stop words were successfully removed.");
        }