示例#1
0
        public void Check_that_board_is_initialized()
        {
            int redCheckerCount   = 0;
            int blackCheckerCount = 0;

            for (int row = 0; row < _board.Board.GetLength(0); row++)
            {
                for (int column = 0; column < _board.Board.GetLength(1); column++)
                {
                    if (_board.IsRedChecker(row, column))
                    {
                        redCheckerCount++;
                    }
                    if (_board.IsBlackChecker(row, column))
                    {
                        blackCheckerCount++;
                    }
                }
            }

            Assert.AreEqual(12, redCheckerCount);
            Assert.AreEqual(12, blackCheckerCount);
        }