Exemplo n.º 1
0
        public void TestCall()
        {
            Player currPlayer   = _players[_dealer._currPlayerIndex];
            int    prePotPlayer = currPlayer.playerPot;
            int    preChip      = currPlayer.Chip.Sum;
            int    preRaise     = _dealer._potManager._previousRaise.Sum;
            int    difference   = preRaise - currPlayer.playerPot;

            _dealer.Call(currPlayer);
            Assert.IsTrue(currPlayer.playerPot == prePotPlayer + difference);
            Assert.IsTrue(currPlayer.playerPot == preRaise);
            Assert.IsTrue(currPlayer.Chip.Sum == preChip - difference);
        }