Example #1
0
        public void LizardPoisonsSpock()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Lizard, Play.Spock));
        }
Example #2
0
        public void PaperCoversRock()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Paper, Play.Rock));
        }
Example #3
0
        public void LizardIsCrushedByRock()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Lizard, Play.Rock));
        }
Example #4
0
        public void LizardIsDecapitedByScissors()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Lizard, Play.Scissors));
        }
Example #5
0
        public void RockCrushesLizard()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Rock, Play.Lizard));
        }
Example #6
0
        public void ScissorsAreBrokenByRock()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Scissors, Play.Rock));
        }
Example #7
0
        public void SpockSmashesScissors()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Spock, Play.Scissors));
        }
Example #8
0
        public void PaperIsEatenByLizard()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Paper, Play.Lizard));
        }
Example #9
0
        public void SpockIsDisprovedByPaper()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Spock, Play.Paper));
        }
Example #10
0
        public void SpockIsPoisonedByLizard()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Spock, Play.Lizard));
        }
Example #11
0
        public void ScissorsDecapiteLizard()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Scissors, Play.Lizard));
        }
Example #12
0
        public void ScissorsCutPaper()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Scissors, Play.Paper));
        }
Example #13
0
        public void ScissorsAreSmashedBySpock()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Scissors, Play.Spock));
        }
Example #14
0
        public void PaperDisprovesSpock()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Paper, Play.Spock));
        }
Example #15
0
        public void SpockVaporizesRock()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Spock, Play.Rock));
        }
Example #16
0
        public void PaperIsCutByScissors()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Paper, Play.Scissors));
        }
Example #17
0
        public void LizardEatsPaper()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Lizard, Play.Paper));
        }
Example #18
0
        public void RockBreaksScissors()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.FirstPlayer, game.DoPlay(Play.Rock, Play.Scissors));
        }
Example #19
0
        public void Ties()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.Tie, game.DoPlay(Play.Paper, Play.Paper));
            Assert.AreEqual(PlayResult.Tie, game.DoPlay(Play.Scissors, Play.Scissors));
            Assert.AreEqual(PlayResult.Tie, game.DoPlay(Play.Spock, Play.Spock));
            Assert.AreEqual(PlayResult.Tie, game.DoPlay(Play.Lizard, Play.Lizard));
            Assert.AreEqual(PlayResult.Tie, game.DoPlay(Play.Rock, Play.Rock));
        }
Example #20
0
        public void RockIsCoveredByPaper()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Rock, Play.Paper));
        }
Example #21
0
        public void RockIsVaporizedBySpock()
        {
            Game game = new Game();

            Assert.AreEqual(PlayResult.SecondPlayer, game.DoPlay(Play.Rock, Play.Spock));
        }