Beispiel #1
0
 public void TestDeadCellWithExactly5NeighborsStaysDeadInNextGeneration()
 {
     ICell cell = new DeadCell();
     cell = cell.NextGeneration(3);
     Assert.True(cell is LiveCell);
 }
Beispiel #2
0
 public void TestDeadCellWith0NeighborsStaysDeadInNextGeneration()
 {
     ICell cell = new DeadCell();
     cell = cell.NextGeneration(0);
     Assert.True(cell is DeadCell);
 }