コード例 #1
0
 public void JudgmentOfGodAddsToCellsAndIgnoresDuplicates()
 {
     World world = new World();
     world.AddCell(0, 0);
     world.AddCell(0, 1);
     world.AddCell(0, -1);
     Assert.AreEqual(3, world.Count());
     world.JudgmentOfGod();
     Assert.IsNotNull(world.GetCell(0,0));
     Assert.IsNotNull(world.GetCell(1, 0));
     Assert.IsNotNull(world.GetCell(-1, 0));
     Assert.AreEqual(3, world.Count());
 }