public void Living_cell_with_less_than_2_neighbours_dies(int neighbours) { // Arrange var cell = new LivingCell(); // Act var newCell = cell.Evolve(neighbours); // Assert newCell.ShouldBeOfType <EmptyCell>(); }
public void Living_cell_with_2_or_3_neighbours_lives(int neighbours) { // Arrange var cell = new LivingCell(); // Act var newCell = cell.Evolve(neighbours); // Assert newCell.ShouldBeOfType <LivingCell>(); }
public void Live_cell_with_1_neighbour_dies() { // Arrange var cell = new LivingCell(); // Act var newCell = cell.Evolve(1); // Assert newCell.IsAlive.ShouldBe(false); }