Example #1
0
  /** 2|-|2 */
  @Test
  public void emptyMiddleCell() {
    Board board = new Board(3);
    List<Cell> cells = getCells(2, null, 2);

    assertTrue(board.areCellsMovable(cells));
  }
Example #2
0
  /** -|2|- */
  @Test
  public void emptyFirstAndLastCell() {
    Board board = new Board(3);
    List<Cell> cells = getCells(null, 2, null);

    assertTrue(board.areCellsMovable(cells));
  }
Example #3
0
  /** 2|2|- */
  @Test
  public void emptyLastCell() {
    Board board = new Board(3);
    List<Cell> cells = getCells(2, 2, null);

    assertFalse(board.areCellsMovable(cells));
  }
Example #4
0
  /** 2|2|2 */
  @Test
  public void filledCells() {
    Board board = new Board(3);
    List<Cell> cells = getCells(2, 2, 2);

    assertFalse(board.areCellsMovable(cells));
  }