Пример #1
0
        public void ConvertToLeet_ConvertO_C0d3()
        {
            LeetSpeakLang testLeetSpeak = new LeetSpeakLang("code");
            List <string> expected      = new List <string> {
                "c0d3"
            };
            List <string> actual = testLeetSpeak.ConvertToLeet();

            CollectionAssert.AreEqual(expected, actual);
        }
Пример #2
0
        public void ConvertToLeet_ConvertT_1337()
        {
            LeetSpeakLang testLeetSpeak = new LeetSpeakLang("leet");
            List <string> expected      = new List <string> {
                "1337"
            };
            List <string> actual = testLeetSpeak.ConvertToLeet();

            CollectionAssert.AreEqual(expected, actual);
        }
Пример #3
0
        public void ConvertToLeet_ReturnWord_Cap()
        {
            LeetSpeakLang testLeetSpeak = new LeetSpeakLang("cap");
            List <string> expected      = new List <string> {
                "cap"
            };
            List <string> actual = testLeetSpeak.ConvertToLeet();

            CollectionAssert.AreEqual(expected, actual);
        }
Пример #4
0
        public void ConvertToLeet_ConvertS_s0zzy()
        {
            LeetSpeakLang testLeetSpeak = new LeetSpeakLang("sossy");
            List <string> expected      = new List <string> {
                "s0zzy"
            };

            expected.ForEach(Console.WriteLine);
            List <string> actual = testLeetSpeak.ConvertToLeet();

            actual.ForEach(Console.WriteLine);
            CollectionAssert.AreEqual(expected, actual);
        }