public void AfterPlayerFoldStateIsWaitForBlinds() { //Arrange var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds)).BlindsPosted(); //Act nfo.CurrentPlayerFolds(); //Assert Assert.AreEqual(GameStateEnum.WaitForBlinds, nfo.Game.State, "The game should be back waiting for blinds sincepot was won and it's starting over"); }
public void StartSecondGameAndCheckNeededBlindOfBothPlayers() { //Arrange var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds)).BlindsPosted(); //Act nfo.CurrentPlayerFolds(); // This will start a new game ! var res = nfo.BlindNeeded(nfo.P1) != nfo.BlindNeeded(nfo.P2); //Assert Assert.AreEqual(true, res, "The second game should need a big blind and a small blind, not two big blinds"); }