Esempio n. 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);
        }
Esempio n. 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);
        }