public static string Shoot(Player player1, Player player2) { string output1 = "DRAW"; string output2 = "PLAYER 1 WINS"; // string output3 = "Player 2 wins!!"; if (player1.GetPlay() == player2.GetPlay()) { return output1; } else if (((player1.GetPlay() == "Scissors") && (player2.GetPlay() == "Paper")) || ((player1.GetPlay() == "Rock") && (player2.GetPlay() == "Scissors"))) { return output2; } else { return null; } }
public void Test_PlayerGetPlay_true() { //Arrange Player player1 = new Player("Rock"); //Act string currentPlay = player1.GetPlay(); //Assert Assert.Equal("Rock", currentPlay); }