예제 #1
0
        public void LeetSpeakConverter_ReturnAtwo_two()
        {
            // any necessary logic to prep for test; instantiating new classes, etc.
            string    arr           = "sabecoLltTsS";
            LeetSpeak testLeetSpeak = new LeetSpeak();

            Assert.AreEqual("sab3c01l77zz", testLeetSpeak.LeetSpeakConverter(arr));
        }
예제 #2
0
        public void LeetSpeakConverter_ReturnNonAlphaInput_False()
        {
            // any necessary logic to prep for test; instantiating new classes, etc.
            string    arr           = "ab c";
            LeetSpeak testLeetSpeak = new LeetSpeak();

            Assert.AreEqual("ab c", testLeetSpeak.LeetSpeakConverter(arr));
        }
예제 #3
0
        public void LeetSpeakConverter_ReturnAZero_Zero()
        {
            // any necessary logic to prep for test; instantiating new classes, etc.
            string    arr           = "abeco";
            LeetSpeak testLeetSpeak = new LeetSpeak();

            Assert.AreEqual("ab3c0", testLeetSpeak.LeetSpeakConverter(arr));
        }