Esempio n. 1
0
 public void TestLiveCellWith4NeighborsDiesInNextGeneration()
 {
     ICell cell = new LiveCell();
     cell = cell.NextGeneration(4);
     Assert.True(cell is DeadCell);
 }
Esempio n. 2
0
 public void TestLiveCellWith3NeighborsLivesInNextGeneration()
 {
     ICell cell = new LiveCell();
     cell = cell.NextGeneration(3);
     Assert.True(cell is LiveCell);
 }