Exemplo n.º 1
0
        public void CheckSizeOfEmptyBoard()
        {
            var board = new Board(0, 0);
            var width = board.Width;
            var height = board.Height;

            Assert.AreEqual(0, width);
            Assert.AreEqual(0, height);
        }
Exemplo n.º 2
0
        public void CheckSizeOfUnsymetricalBoard()
        {
            var board = new Board(6, 7);

            var width = board.Width;
            var height = board.Height;

            Assert.AreEqual(6, height);
            Assert.AreEqual(7, width);
        }
Exemplo n.º 3
0
        public void CheckSizeOfQuadraticBoard()
        {
            var board = new Board(4, 4);

            var width = board.Width;
            var height = board.Height;

            Assert.AreEqual(4, width);
            Assert.AreEqual(4, height);
        }