예제 #1
0
        public void CheckWordList_WordListContainsAnagram_ListOfAnagrams()
        {
            List <string> expectedResultList = new List <string> {
                "beard"
            };
            List <string> listToCheck = new List <string> {
                "beers", "beard"
            };
            Anagram newAnagram = new Anagram("bread", listToCheck);

            foreach (string word in listToCheck)
            {
                Console.WriteLine(word);
            }
            CollectionAssert.AreEqual(expectedResultList, newAnagram.CheckWordList());
        }