Ejemplo n.º 1
0
 @Test
 public void testNumberDoorways() {
   int numDoors = 0;
   int numCells = board.getNumColumns() * board.getNumRows();
   assertEquals(625, numCells);
   for (int i = 0; i < numCells; ++i) {
     BoardCell cell = board.getCellAt(i);
     if (cell.isDoorway()) ++numDoors;
   }
   assertEquals(12, numDoors);
 }
Ejemplo n.º 2
0
 @Test
 public void testBoardDimensions() {
   assertEquals(NUM_ROWS, board.getNumRows());
   assertEquals(NUM_COLUMNS, board.getNumColumns());
 }