Пример #1
0
        public void IsRockPaperScissors_ScissorsOverScissors_True()
        {
            RockPaperScissor newCombination = new RockPaperScissor();

            Assert.AreEqual("draw", newCombination.WinCondition("scissors", "scissors"));
        }
Пример #2
0
        public void IsRockPaperScissors_PaperOverPaper_True()
        {
            RockPaperScissor newCombination = new RockPaperScissor();

            Assert.AreEqual("draw", newCombination.WinCondition("paper", "paper"));
        }
Пример #3
0
        public void IsRockPaperScissors_RockOverRock_True()
        {
            RockPaperScissor newCombination = new RockPaperScissor();

            Assert.AreEqual("draw", newCombination.WinCondition("rock", "rock"));
        }
Пример #4
0
        public void IsRockPaperScissors_PaperOverScissors2_True()
        {
            RockPaperScissor newCombination = new RockPaperScissor();

            Assert.AreEqual("player one wins", newCombination.WinCondition("scissors", "paper"));
        }
Пример #5
0
        public void IsRockPaperScissors_RockOverPaper_True()
        {
            RockPaperScissor newCombination = new RockPaperScissor();

            Assert.AreEqual("player two wins", newCombination.WinCondition("rock", "paper"));
        }
        public ActionResult SubmitPlays()
        {
            string result = _myPlayers.WinCondition(Request.Form["player-one-choice"], Request.Form["player-two-choice"]);

            return(View("Winner", result));
        }