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

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

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