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

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

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