public void ReturnAnEmptyGridWhenAllALiveCellsDie() { _gameOfLife.SetGrid(5, 5); int[][] graph = { new[] { 0, 0, 0, 0, 0 }, new[] { 0, 0, 0, 0, 0 }, new[] { 0, 0, 0, 1, 0 }, new[] { 0, 0, 0, 0, 0 }, new[] { 0, 0, 0, 0, 0 } }; _testHelper.TransformGraphToCells(graph).ForEach(cell => _gameOfLife.AddCellToGrid(cell)); _gameOfLife.Evolve(); int[][] expectedLiveCellsGraph = { new[] { 0, 0, 0, 0, 0 }, new[] { 0, 0, 0, 0, 0 }, new[] { 0, 0, 0, 0, 0 }, new[] { 0, 0, 0, 0, 0 }, new[] { 0, 0, 0, 0, 0 } }; var expectedLiveCells = _testHelper.TransformGraphToCells(expectedLiveCellsGraph); var actualLivingCells = _gameOfLife.LivingCells; expectedLiveCells.Should().BeEquivalentTo(actualLivingCells); Assert.Empty(actualLivingCells); }