Ejemplo n.º 1
0
        public void AliveCellWithTwoNeighboursLives()
        {
            int neighbours = 2;

            Assert.IsTrue(LifeRules.CellSurvives(neighbours, true));
        }
Ejemplo n.º 2
0
 public void LiveCellDiesMoreThan3Neighbors(int neighbours)
 {
     Assert.IsFalse(LifeRules.CellSurvives(neighbours, false));
 }
Ejemplo n.º 3
0
        public void CellAlwaysAliveWith3Neighbours(bool state)
        {
            int neighbours = 3;

            Assert.IsTrue(LifeRules.CellSurvives(neighbours, state));
        }
Ejemplo n.º 4
0
 public void StaysDeadWithLessThan3Neighbors(int numNeighbours)
 {
     Assert.IsFalse(LifeRules.CellSurvives(numNeighbours, false));
 }