public void LivingCellHasOneNeighbourAndDies() { var x = new GameOfLife(); x.setNumberOfNeighbour(1); Boolean isAlive = x.survives(); Assert.IsFalse(isAlive); }
public void LivingCellHasTwoNeighbourAndLife() { var x = new GameOfLife(); x.setNumberOfNeighbour(2); Boolean isAlive = x.survives(); Assert.IsTrue(isAlive); }
public void DeadCellHasThreeNeighbourAndLives() { var x = new GameOfLife(); x.setAlive(false); x.setNumberOfNeighbour(3); Boolean isAlive = x.survives(); Assert.IsTrue(isAlive); }