public void Then_Cell_Will_Stay_Alive()
 {
     Cell cell = new Cell(true, 2);
     cell.NextGeneration();
     Assert.IsTrue(cell.IsAlive);
 }
 public void Then_Cell_Will_Be_Freed()
 {
     Cell cell = new Cell(true, 4);
     cell.NextGeneration();
     Assert.IsFalse(cell.IsAlive);
 }
 public void Then_Cell_Will_Be_Alive_In_Next_Generation()
 {
     Cell cell = new Cell(false, 3);
     cell.NextGeneration();
     Assert.IsTrue(cell.IsAlive);
 }
 public void Then_Cell_Will_Stay_Free()
 {
     Cell cell = new Cell(false, 0);
     cell.NextGeneration();
     Assert.IsFalse(cell.IsAlive);
 }
Example #5
0
 public void SetCellAlive(int x, int y)
 {
     _cells[GetCellIndex(x, y)] = new Cell(true);
 }