public void PingPongGenerator_ForNumberDivisibleByThree_true()
 {
     PingPongGenerator pingpong = new PingPongGenerator();
       List<string> result = pingpong.IsPingPong(3);
       foreach (string index in result)
       {
     Console.WriteLine(index);
       }
       Assert.Equal(result, pingpong.IsPingPong(3));
 }
Esempio n. 2
0
        public void PingPongGenerator_ForNumberDivisibleByThree_true()
        {
            PingPongGenerator pingpong = new PingPongGenerator();
            List <string>     result   = pingpong.IsPingPong(3);

            foreach (string index in result)
            {
                Console.WriteLine(index);
            }
            Assert.Equal(result, pingpong.IsPingPong(3));
        }
Esempio n. 3
0
 public HomeModule()
 {
     Get["/"]         = _ => View["input_form.cshtml"];
     Post["/results"] = _ => {
         int maxNumber = int.Parse(Request.Form["number"]);
         PingPongGenerator pingpong = new PingPongGenerator();
         List <string>     results  = pingpong.IsPingPong(maxNumber);
         return(View["results.cshtml", results]);
     };
 }
 public HomeModule()
 {
     Get["/"] = _ => View["input_form.cshtml"];
       Post["/results"] = _ => {
     int maxNumber = int.Parse(Request.Form["number"]);
     PingPongGenerator pingpong = new PingPongGenerator();
     List<string> results = pingpong.IsPingPong(maxNumber);
     return View["results.cshtml", results];
       };
 }