Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 public bool HasCurrentPlayerWon()
 {
     return(_gamePlayers.DidCurrentPlayerWin());
 }