()
| 37 | } |
| 38 | |
| 39 | @Test |
| 40 | public void blockedByEnemyPawn() { |
| 41 | Board board = new Board(); |
| 42 | board.placeKing(3, 3, Color.BLACK); |
| 43 | board.placePawn(4, 3, Color.WHITE); |
| 44 | board.placeKing(7, 7, Color.WHITE); |
| 45 | System.out.println(board); |
| 46 | System.out.println(board.getPiece(3, 3).getMoveList(board)); |
| 47 | Assert.assertEquals(8, board.getPiece(3, 3).getMoveList(board).size()); |
| 48 | } |
| 49 | |
| 50 | @Test |
| 51 | public void notBlockedByEnemyPawn() { |
nothing calls this directly
no test coverage detected