示例#1
0
        public void Dead_cell_with_3_neighbours_is_born()
        {
            // Arrange
            var cell = new DeadCell();

            // Act
            var newCell = cell.Evolve(3);

            // Assert
            newCell.ShouldBeOfType <LivingCell>();
        }
示例#2
0
        public void Dead_cell_with_2_neighbours_stays_dead()
        {
            // Arrange
            var cell = new DeadCell();

            // Act
            var newCell = cell.Evolve(2);

            // Assert
            newCell.ShouldBeOfType <DeadCell>();
        }