public void Dead_cell_with_3_neighbours_is_born() { // Arrange var cell = new EmptyCell(); // Act var newCell = cell.Evolve(3); // Assert newCell.ShouldBeOfType <LivingCell>(); }
public void Living_cell_with_4_or_more_neighbours_dies(int neighbours) { // Arrange var cell = new EmptyCell(); // Act var newCell = cell.Evolve(neighbours); // Assert newCell.ShouldBeOfType <EmptyCell>(); }
public void Dead_cell_with_greater_than_3_neighbours_stays_dead(int neighbours) { // Arrange var cell = new EmptyCell(); // Act var newCell = cell.Evolve(neighbours); // Assert newCell.ShouldBeOfType <EmptyCell>(); }