コード例 #1
0
        public void CheckHeightOfEmptyColumnIs0()
        {
            var game         = new Game();
            var board        = new BoardAPI(10, 8);
            var actualResult = board.GetHeightOfColumn(game.Cells, 1);

            Assert.AreEqual(0, actualResult);
        }
コード例 #2
0
        public void CheckHeightOfPlayedColumnIsCorrect()
        {
            var game  = new Game();
            var board = new BoardAPI(10, 8);

            board.MakeMove(game.Cells, 1, true);
            board.MakeMove(game.Cells, 1, true);
            board.MakeMove(game.Cells, 1, true);

            var actualResult = board.GetHeightOfColumn(game.Cells, 1);

            Assert.AreEqual(3, actualResult);
        }