public ActionResult Result() { PingPongClass newpingpong = new PingPongClass(int.Parse(Request.Query["number"])); return(View("result", newpingpong.IsPingPong())); }
public void isPingPong_ForNumber_DivisibleByFifteen_pingpong() { PingPongClass testPingPong = new PingPongClass(30); Assert.AreEqual("1", testPingPong.IsPingPong()[0]); }
public void isPong_ForNumber_DivisibleByThree_ping() { PingPongClass testPingPong = new PingPongClass(9); Assert.AreEqual("Pong", testPingPong.IsPingPong()[4]); }
public void isPong_ForNumber_NotDivisibleByThreeFiveFifteen_numberEntered() { PingPongClass testPingPong = new PingPongClass(17); Assert.AreEqual("PingPong", testPingPong.IsPingPong()[14]); }
public void isPing_ForNumber_DivisibleByFive_pong() { PingPongClass testPingPong = new PingPongClass(10); Assert.AreEqual("Ping", testPingPong.IsPingPong()[2]); }