Exemplo n.º 1
0
        public void GetWinner_PlayersSameChoice_Draw()
        {
            RPSGame newRPSGame = new RPSGame("1", "1");

            Assert.Equal("It's a draw!", newRPSGame.GetResult());
        }
Exemplo n.º 2
0
        public void GetWinner_PlayerTwoScissorsPlayerOneRock_PlayerOneWins()
        {
            RPSGame newRPSGame = new RPSGame("1", "3");

            Assert.Equal("Player 1 Wins!", newRPSGame.GetResult());
        }
Exemplo n.º 3
0
        public void GetWinner_PlayerTwoScissorsPlayerOnePaper_PlayerTwoWins()
        {
            RPSGame newRPSGame = new RPSGame("2", "3");

            Assert.Equal("Player 2 Wins!", newRPSGame.GetResult());
        }
Exemplo n.º 4
0
        public void GetWinner_PlayerOnePaperPlayerTwoRock_PlayerOneWins()
        {
            RPSGame newRPSGame = new RPSGame("2", "1");

            Assert.Equal("Player 1 Wins!", newRPSGame.GetResult());
        }