Beispiel #1
0
 public void A_Cell_With_No_Live_Neighbours_Comes_Alive()
 {
     var cell = new Cell(this);
     cell.CountAliveNeighbours();
     cell.WorkOutLifeStatus();
     Assert.AreEqual(cell.CellStatus, CellStatus.Alive);
 }
Beispiel #2
0
 public void A_Cell_With_Four_Live_Neighbours_Dies()
 {
     var cell = new Cell(this);
     cell.CountAliveNeighbours();
     cell.WorkOutLifeStatus();
     Assert.AreEqual(cell.CellStatus, CellStatus.Dead);
 }