コード例 #1
0
        public void BreakWordIntoChar_ReturnCharList()
        {
            string        word      = "evil";
            string        listCheck = "big boy";
            List <string> charList  = new List <string> {
                "e", "v", "i", "l"
            };
            AnagramGenerator newAnagramGenerator = new AnagramGenerator(word, listCheck);

            List <string> newList = new List <string> {
            };

            newAnagramGenerator.CreateCharList();
            newList = newAnagramGenerator.GetWordCharList();

            CollectionAssert.AreEqual(charList, newList);
        }