Exemplo n.º 1
0
        public void DeadCellWithThreeNeighboursComesAlive()
        {
            bool alive = World.IsAliveInNextRound(false, 3);

            Assert.True(alive);
        }
Exemplo n.º 2
0
        public void AliveCellWithMoreThanThreeNeighboursDies()
        {
            bool alive = World.IsAliveInNextRound(true, 4);

            Assert.False(alive);
        }
Exemplo n.º 3
0
        public void AliveCellWithTwoNeighboursStaysAlive()
        {
            bool alive = World.IsAliveInNextRound(true, 2);

            Assert.True(alive);
        }
Exemplo n.º 4
0
        public void AliveCellWithFewerThanTwoNeighboursDies()
        {
            bool alive = World.IsAliveInNextRound(true, 1);

            Assert.False(alive);
        }
Exemplo n.º 5
0
        public void DeadCellWithMoreThanThreeNeighboursStaysDead()
        {
            bool alive = World.IsAliveInNextRound(false, 4);

            Assert.False(alive);
        }