コード例 #1
0
        public void GetNextState_LiveCell_8LiveNeighbours_StaysAlive()
        {
            var          cell            = CellTestHelper.MakeLiveViralCell();
            List <State> eightNeighbours = CellTestHelper.CreateConwayNeighboursList(8);

            CellTestHelper.EvolveCell(cell, eightNeighbours);
            Assert.IsTrue(cell.CurrentState == State.ALIVE);
        }