Example #1
0
  @Test
  public void testDigCount() throws InvalidActionException {
    Cell cell = new Cell(false, 0);
    Cell[][] cells = new Cell[SIZE][SIZE];
    for (int i = 0; i < SIZE; i++) for (int j = 0; j < SIZE; j++) cells[i][j] = new Cell(false, 0);
    cells[0][0] = cell;
    Cells cellsObject = new Cells(cells);
    Board board = new Board(cellsObject);

    cell.dig();
    Assert.assertEquals(board.numberOfDigCell(), 1);
  }