Пример #1
0
        public void TestListOfShortestWordsWithWordsTheSameLength()
        {
            List <string> expected = new List <string> {
                "The", "Cat", "And", "Dog"
            };
            TextAnalyst   frm    = new TextAnalyst();
            List <string> actual = frm.GetShortestWords(new List <string> {
                "The", "Cat", "And", "Dog"
            });

            CollectionAssert.AreEqual(expected, actual);
        }
Пример #2
0
        public void TestListOfShortestWords()
        {
            List <string> expected = new List <string> {
                "The", "Fox", "Dog"
            };
            TextAnalyst   frm    = new TextAnalyst();
            List <string> actual = frm.GetShortestWords(new List <string> {
                "The", "Quick", "Brown", "Quick", "Fox", "Jumps", "Over", "The", "Lazy", "Dog"
            });

            CollectionAssert.AreEqual(expected, actual);
        }