public void GetWins_GetPlayerOneWins_int() { //arrange RockPaperScissorsGame newGame = new RockPaperScissorsGame("Player 1", "Player 2"); //act int result = newGame.GetPlayerOneWins(); //assert Assert.AreEqual(0, result); }
public void GameResult_SetScores_int() { //arrange RockPaperScissorsGame newGame = new RockPaperScissorsGame("Player 1", "Player 2"); //act newGame.SetPlayerOneChoice("Scissors"); newGame.SetPlayerTwoChoice("Paper"); newGame.GameResult(); string result = newGame.GetGameWinner(); //assert Assert.AreEqual(1, newGame.GetPlayerOneWins()); Assert.AreEqual(result, "Player 1 Wins!"); }