public void GivenThereAre2Players_And_DidCurrentPlayerWin_ShouldReturnTheFirstPlayers_WinningState() { _gamePlayers.AddPlayer(new Player("A")); _gamePlayers.AddPlayer(new Player("B")); _gamePlayers.AddPointToCurrentPlayer(); _gamePlayers.AddPointToCurrentPlayer(); _gamePlayers.AddPointToCurrentPlayer(); _gamePlayers.AddPointToCurrentPlayer(); _gamePlayers.AddPointToCurrentPlayer(); _gamePlayers.AddPointToCurrentPlayer(); Assert.AreEqual(true, _gamePlayers.DidCurrentPlayerWin()); }
public bool HasCurrentPlayerWon() { return(_gamePlayers.DidCurrentPlayerWin()); }