コード例 #1
0
ファイル: CellTest.cs プロジェクト: jediwhale/Practice
 public void LiveCellWithLessThan2NeighboursDies()
 {
     var cell = new Cell(true);
     var nextCell = cell.NextCell(1);
     Assert.AreEqual(false, nextCell.IsAlive());
 }
コード例 #2
0
ファイル: CellTest.cs プロジェクト: jediwhale/Practice
 public void LiveCellWith2NeighboursLives()
 {
     var cell = new Cell(true);
     var nextCell = cell.NextCell(2);
     Assert.AreEqual(true, nextCell.IsAlive());
 }