Exemplo n.º 1
0
        public void Should_create_new_board()
        {
            var gamePreparer = new GamePreparer();
            var board        = gamePreparer.CreateAndPrepareBoard();

            Assert.NotNull(board);
        }
Exemplo n.º 2
0
        public void Should_create_new_board_with_one_queen_on_position_0_4()
        {
            var gamePreparer = new GamePreparer();
            var board        = gamePreparer.CreateAndPrepareBoard();

            var position = board.GetPieceOfPosition(0, 4);

            Assert.IsType <Queen>(position);
        }
Exemplo n.º 3
0
        public void Should_create_new_board_with_one_king_on_position_0_3()
        {
            var gamePreparer = new GamePreparer();
            var board        = gamePreparer.CreateAndPrepareBoard();

            var position = board.GetPieceOfPosition(0, 3);

            Assert.IsType <King>(position);
        }
Exemplo n.º 4
0
        public void Should_create_new_board_with_two_black_horses_on_position(int positionX, int positionY)
        {
            var gamePreparer = new GamePreparer();
            var board        = gamePreparer.CreateAndPrepareBoard();

            var position = board.GetPieceOfPosition(positionX, positionY);

            Assert.IsType <Horse>(position);
        }
Exemplo n.º 5
0
        public void Should_create_new_board_with_eight_black_chessPawns_on_position(int positionX, int positionY)
        {
            var gamePreparer = new GamePreparer();
            var board        = gamePreparer.CreateAndPrepareBoard();

            var position = board.GetPieceOfPosition(positionX, positionY);

            Assert.IsType <ChessPawn>(position);
        }