public void AtStartOfBettingFirstPlayerBetsUnderMinimum() { //Arrange var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds)).AfterPreflop(); //Act var res = nfo.CurrentPlayerPlays(nfo.Game.Table.MinRaiseAmountForPlayer(nfo.CurrentPlayer) - 1); //Assert Assert.AreEqual(false, res, "The player should not be able to raise under the minimum"); }
public void AtStartOfBettingFirstPlayerBetsOverMinimum() { //Arrange var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds)).AfterPreflop(); nfo.CurrentPlayerChecks(); //Act var res = nfo.CurrentPlayerPlays(nfo.Game.Table.MinRaiseAmountForPlayer(nfo.CurrentPlayer) + 1); //Assert Assert.AreEqual(true, res, "The player should be able to raise with more than the minimum"); }
public void AllIn() { //Arrange var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds)).AfterPreflop(); if (nfo.CurrentPlayer == nfo.PoorestPlayer) { nfo.CurrentPlayerChecks(); } nfo.CurrentPlayerPlays(nfo.PoorestPlayer.MoneySafeAmnt + 10); //Act var res = nfo.CurrentPlayerCalls(); //Assert Assert.AreEqual(true, res, "The first player should be allowed to go all-in"); }