public void GivenAListWithTwoPlayers_WhenValidateTheWinner_ShouldReturnTheWinner() { var twoPlayersList = GivenAListWithTwoPlayers(); RpsPlayer winner = _game.GetWinner(twoPlayersList); winner.PlayerName.Should().Be("Luis"); winner.Choice.Should().Be(RpsChoicesEnum.R); }
public bool AddPlayer(RpsPlayer player) { if (Players1.Count < 2) { Players1.Add(player); return(true); } if (Players2.Count < 2) { Players2.Add(player); return(true); } return(false); }