public void RockAlwaysDrawsRock() { IPlayer player1 = new RockPlayer(); IPlayer player2 = new RockPlayer(); RockPaperScissorsGame game = new RockPaperScissorsGame(player1, player2); Outcome result = game.Play(); Assert.AreEqual(Outcome.Draw, result); }
public void PaperAlwaysBeatsRock() { IPlayer player1 = new PaperPlayer(); IPlayer player2 = new RockPlayer(); RockPaperScissorsGame game = new RockPaperScissorsGame(player1, player2); Outcome result = game.Play(); Assert.AreEqual(Outcome.Player1Wins, result); }