示例#1
0
        public void IsLeetspeak_ForStoZ_true()
        {
            string    phrase        = "3p1c0duz";
            Leetspeak testLeetspeak = new Leetspeak();

            Assert.Equal(phrase, testLeetspeak.IsLeetspeak("Epicodus"));
        }
示例#2
0
 public HomeModule()
 {
     Get["/"] = _ => {
         return(View["index.cshtml"]);
     };
     Get["/Leetspeak"] = _ => {
         Leetspeak newPhrase = new Leetspeak(
             Request.Query["phrase"]);
         return(View["leetspeak.cshtml", newPhrase]);
     };
 }