public void SetGetModifiedPhrase_TestForSetGetModifiedPhrase_CharArray() { Leetspeak testLeetspeak = new Leetspeak(); testLeetspeak.SetModifiedPhrase(new List <char> { 'D', 'u', 'd', 'e' }); CollectionAssert.AreEqual(new List <char> { 'D', 'u', 'd', 'e' }, testLeetspeak.GetModifiedPhrase()); }
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()); }