public void LifeRuleWithTwoNewCells() { World world = new World(); world.AddCell(0, 0); world.AddCell(0, 1); world.AddCell(0, -1); Assert.AreEqual(3, world.Count()); List<Cell> listWithDupilicatesOfNewCells = world.ActOfGod(); Assert.AreEqual(6, listWithDupilicatesOfNewCells.Count); }
public void LifeRuleWithOneNewCell() { World world = new World(); world.AddCell(0, 0); world.AddCell(-1, 0); world.AddCell(0, 1); Assert.AreEqual(3, world.Count()); List<Cell> expectedWithDuplicates = world.ActOfGod(); Assert.AreEqual(3, expectedWithDuplicates.Count); }