Пример #1
0
        public ActionResult Result()
        {
            PingPongClass newpingpong = new PingPongClass(int.Parse(Request.Query["number"]));

            return(View("result", newpingpong.IsPingPong()));
        }
Пример #2
0
        public void isPingPong_ForNumber_DivisibleByFifteen_pingpong()
        {
            PingPongClass testPingPong = new PingPongClass(30);

            Assert.AreEqual("1", testPingPong.IsPingPong()[0]);
        }
Пример #3
0
        public void isPong_ForNumber_DivisibleByThree_ping()
        {
            PingPongClass testPingPong = new PingPongClass(9);

            Assert.AreEqual("Pong", testPingPong.IsPingPong()[4]);
        }
Пример #4
0
        public void isPong_ForNumber_NotDivisibleByThreeFiveFifteen_numberEntered()
        {
            PingPongClass testPingPong = new PingPongClass(17);

            Assert.AreEqual("PingPong", testPingPong.IsPingPong()[14]);
        }
Пример #5
0
        public void isPing_ForNumber_DivisibleByFive_pong()
        {
            PingPongClass testPingPong = new PingPongClass(10);

            Assert.AreEqual("Ping", testPingPong.IsPingPong()[2]);
        }