Пример #1
0
 @Test
 public void testGetPieceNull() {
   Piece piece = board.getPiece(5, 5);
   assertNull(piece);
 }
Пример #2
0
 @Test
 public void testPieceColour() {
   Piece piece = board.getPiece(4, 1);
   assertEquals(white, piece.getColour());
 }
Пример #3
0
 @Test
 public void testGetPieceNotNull() {
   Piece piece = board.getPiece(4, 1);
   assertNotNull(piece);
 }