示例#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);
 }