Пример #1
0
        public void Test_Flop_BoardStateIsFlop_IsTrue()
        {
            Table table = new Table(4, 0);

            table.AddPlayer(new Player(500, 0));
            table.AddPlayer(new Player(500, 0));
            table.AddPlayer(new Player(500, 0));

            table.StartGame();
            table.Flop();

            Assert.AreEqual(table.Board.BoardState, BoardStateType.Flop);
        }
Пример #2
0
        public void Test_River_WhenInFlop_ThrowsException()
        {
            Table table = new Table(4, 0);

            table.AddPlayer(new Player(500, 0));
            table.AddPlayer(new Player(500, 0));
            table.AddPlayer(new Player(500, 0));

            table.StartGame();
            table.Flop();

            Exception exception = Assert.Throws <Exception>(() => table.River());

            Assert.AreEqual(exception.Message, "The board has to go through Turn first!");
        }