Esempio n. 1
0
 /**
  * Tests the setGems and getGems methods, by first setting Gems[][] testgems, and then checking
  * whether it was set with the getGems method.
  */
 @Test
 public final void setGemTest() {
   board = new Board(2, 0, 0, false);
   Gem[][] testgems = new Gem[2][2];
   board.setGems(testgems);
   assertArrayEquals(testgems, board.getGems());
 }