public void AliveCellWithTwoNeighboursLives() { int neighbours = 2; Assert.IsTrue(LifeRules.CellSurvives(neighbours, true)); }
public void LiveCellDiesMoreThan3Neighbors(int neighbours) { Assert.IsFalse(LifeRules.CellSurvives(neighbours, false)); }
public void CellAlwaysAliveWith3Neighbours(bool state) { int neighbours = 3; Assert.IsTrue(LifeRules.CellSurvives(neighbours, state)); }
public void StaysDeadWithLessThan3Neighbors(int numNeighbours) { Assert.IsFalse(LifeRules.CellSurvives(numNeighbours, false)); }