Ejemplo n.º 1
0
        public void TestBishopEatsFreindlyPiece_AssertFalse()
        {
            //Arrange
            Piece[,] board = new Piece[8, 8];
            board[1, 1]    = new Pawn(true);
            GameBoard myBoard = new GameBoard(board);

            int[] currentPosition = new int[2];
            currentPosition[0] = 3;
            currentPosition[1] = 3;

            int[] newPosition = new int[2];
            newPosition[0] = 1;
            newPosition[1] = 1;
            //Act
            Bishop myBishop = new Bishop(true);
            bool   result   = myBishop.MovePiece(currentPosition, newPosition);

            //Assert
            Assert.IsFalse(result);
        }