예제 #1
0
        public void CreateLeetspeak_TestValuesAreReplaced_PhraseIsConverted()
        {
            Leetspeak testLeetspeak = new Leetspeak();

            testLeetspeak.SetUserInput("sleets");
            testLeetspeak.MakeDictionary();
            testLeetspeak.CreateLeetspeak();
            List <char> leetPhrase = new List <char> {
                's', 'l', '3', '3', '7', 'z'
            };

            CollectionAssert.AreEqual(leetPhrase, testLeetspeak.GetModifiedPhrase());
        }