public ActionResult Return() { string userSentence = (Request.Form["phrase"]); string convertedSentence = LeetSpeak.LeetTranslate(userSentence); return(View("Index", convertedSentence)); }
public void GetSentence_ReturnLeet_String() { string TestSentence = "7hiz iz L337Sp34k!"; string preConvertedSentence = "This is LeetSpeak!"; string ConvertedSentence = LeetSpeak.LeetTranslate(preConvertedSentence); Assert.AreEqual(TestSentence, ConvertedSentence); }