Пример #1
0
        public void GivenDeadCellWithAnyNumberOtherThanThreeLiveNeighboursShouldReturnDeadCell(char cell, int countOfLiveNeighbours, char expected)
        {
            var cellUpdater = new CellUpdater();
            var actual      = cellUpdater.GetUpdatedCell(cell, countOfLiveNeighbours);

            Assert.Equal(expected, actual);
        }
Пример #2
0
        public void GivenLiveCellWithLessThanTwoLiveNeighboursShouldReturnDeadCell(char cell, int countOfLiveNeighbours, char expected)
        {
            var cellUpdater = new CellUpdater();
            var actual      = cellUpdater.GetUpdatedCell(cell, countOfLiveNeighbours);

            Assert.Equal(expected, actual);
        }