private void CreateAndPlayGame(IEnumerable<Int32> playerIds) { var banker = new TraditionalBanker(playerIds); var turnFactory = new TraditionalTurnFactory(banker); game = new Game(playerIds, turnFactory); game.Play(); }
public void TestTwentyRoundsPlayedAndEachPlayerPlayedAllTwenty() { var game = new Game(playerIds, turnFactory); game.Play(); Assert.That(game.Rounds, Is.EqualTo(20)); Assert.That(game.GetTotalTurnsFor(0), Is.EqualTo(20)); Assert.That(game.GetTotalTurnsFor(1), Is.EqualTo(20)); Assert.That(game.GetTotalTurnsFor(2), Is.EqualTo(20)); }