Beispiel #1
0
        public void AliveCellWithTwoNeighboursLives()
        {
            int neighbours = 2;

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

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