Exemple #1
0
        public void Game4PUtgIsNextToBigBlindOnPreflop()
        {
            //Arrange
            var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds), new NbPlayersModule(4)).BlindsPosted();

            //Act
            var res = nfo.PlayerNextTo(nfo.PlayerNextTo(nfo.PlayerNextTo(nfo.Dealer)));

            //Assert
            Assert.AreEqual(nfo.CurrentPlayer, res, "Player next to big blind should be under the gun on preflop");
        }
        public void Game3PBigIsNextToSmall()
        {
            //Arrange
            var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds), new NbPlayersModule(3)).WithAllPlayersSeated();

            //Act
            var res = nfo.PlayerNextTo(nfo.CalculatedSmallBlind);

            //Assert
            Assert.AreEqual(nfo.CalculatedBigBlind, res, "Player Next To CalculatedSmallBlind should be the big blind");
        }
        public void Game3PSmallIsNextToDealer()
        {
            //Arrange
            var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds), new NbPlayersModule(3)).WithAllPlayersSeated();

            //Act
            var res = nfo.PlayerNextTo(nfo.Dealer);

            //Assert
            Assert.AreEqual(nfo.CalculatedSmallBlind, res, "Player Next To SeatOfDealer should be the small blind");
        }
        public void Game2PBigIsNextToDealer()
        {
            //Arrange
            var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Blinds)).WithAllPlayersSeated();

            //Act
            var res = nfo.PlayerNextTo(nfo.Dealer);

            //Assert
            Assert.AreEqual(nfo.CalculatedBigBlind, res, "Player Next To SeatOfDealer should be the big blind");
        }
Exemple #5
0
        public void Game3PNoBlindsUtgIsNextToDealerOnPreflop()
        {
            //Arrange
            var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.None), new NbPlayersModule(3)).WithAllPlayersSeated();

            //Act
            var res = nfo.PlayerNextTo(nfo.Dealer);

            //Assert
            Assert.AreEqual(nfo.CurrentPlayer, res, "Player next to dealer should be under the gun on preflop");
        }
Exemple #6
0
        public void Game2PAntesUtgIsNextToDealerOnFlop()
        {
            //Arrange
            var nfo = new ModularGameMock(new BlindModule(BlindTypeEnum.Antes)).AfterPreflop();

            //Act
            var res = nfo.PlayerNextTo(nfo.Dealer);

            //Assert
            Assert.AreEqual(nfo.CurrentPlayer, res, "Player next to dealer should be under the gun on flop");
        }