Beispiel #1
0
        public void IsNumber_NotDivisibleByThreeFiveFifteen_false()
        {
            PingPong newPingPong      = new PingPong();
            string   newChangedValues = newPingPong.IsNumber("2");

            Assert.Equal("12", newChangedValues);
        }
Beispiel #2
0
        public void IsNumber_DivisibleByFive_true()
        {
            PingPong newPingPong      = new PingPong();
            string   newChangedValues = newPingPong.IsNumber("5");

            Assert.Equal("12ping4pong", newChangedValues);
        }
Beispiel #3
0
        public void IsNumber_DivisibleByFifteen_true()
        {
            PingPong newPingPong      = new PingPong();
            string   newChangedValues = newPingPong.IsNumber("15");

            Assert.Equal("12ping4pongping78pingpong11ping1314ping-pong", newChangedValues);
        }
Beispiel #4
0
        public HomeModule()
        {
            Get["/"]        = _ => View["index.cshtml"];
            Post["/PPform"] = _ => {
                PingPong newPingPong = new PingPong();

                string newChangedValues = newPingPong.IsNumber(Request.Form["userInput"]);
                return(View["results.cshtml", newChangedValues]);
            };
        }