public void It_should_be_able_to_count_living_neighbors() { _gameOfLife.SetLivingCell(2, 3); _gameOfLife.SetLivingCell(2, 4); _gameOfLife.SetLivingCell(1, 2); _gameOfLife.SetLivingCell(1, 3); _gameOfLife.CountLivingNeighbors(2, 3).Should().Be(3); }
public void Should_Count_Living_Neighbors() { _gameOfLife.SetLivingCell(2, 3); _gameOfLife.SetLivingCell(2, 4); _gameOfLife.SetLivingCell(1, 2); _gameOfLife.SetLivingCell(1, 3); _gameOfLife.CountLivingNeighbors(2, 3).Should().Be(3); }