예제 #1
0
        public ActionResult Return()
        {
            string userSentence      = (Request.Form["phrase"]);
            string convertedSentence = LeetSpeak.LeetTranslate(userSentence);

            return(View("Index", convertedSentence));
        }
예제 #2
0
        public void GetSentence_ReturnLeet_String()
        {
            string TestSentence         = "7hiz iz L337Sp34k!";
            string preConvertedSentence = "This is LeetSpeak!";
            string ConvertedSentence    = LeetSpeak.LeetTranslate(preConvertedSentence);

            Assert.AreEqual(TestSentence, ConvertedSentence);
        }