コード例 #1
0
ファイル: CellTest.java プロジェクト: abhisheksp/GameofLife
  @Test
  public void shouldRemainAliveWhenReviveIsCalledOnAliveCell() {
    Cell cell = new Cell(true);

    cell.revive();

    assertEquals(new Cell(true).format(), cell.format());
  }
コード例 #2
0
ファイル: CellTest.java プロジェクト: abhisheksp/GameofLife
  @Test
  public void shouldReviveDeadCellWhenReviveIsCalled() {
    Cell cell = new Cell(false);

    cell.revive();

    assertEquals(new Cell(true).format(), cell.format());
  }