@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); }
@Test public void testBoardDimensions() { assertEquals(NUM_ROWS, board.getNumRows()); assertEquals(NUM_COLUMNS, board.getNumColumns()); }