コード例 #1
0
        public void AnagramConstructor_ScramblesLettersOfWord_List()
        {
            List <string> listForConstructor = new List <string> {
                "tab", "book", "abt"
            };
            List <string> resultList = new List <string> {
                "tab", "abt"
            };


            Anagram newAnagram = new Anagram("bat", listForConstructor);

            newAnagram.CreateAnagrams();
            CollectionAssert.AreEqual(resultList, newAnagram.Get_anagrams());
        }