public void InfiniteBoardEnsureTheWorldHasZeroCells() { InfiniteBoard world = new InfiniteBoard(); int expectedNumberOfCells = 0; int actualNumberOfCells = world.CellCount(); Assert.AreEqual(expectedNumberOfCells, actualNumberOfCells); }
public void InfiniteBoardEnsureThereAreCells() { InfiniteBoard world = new InfiniteBoard(); int x = 4; int y = 3; world.AddCell(x, y); Assert.AreEqual(1, world.CellCount()); }
public void InfiniteBoardTestRemoveCell() { InfiniteBoard world = new InfiniteBoard(); world.AddCell(0, 0); world.RemoveCell(0, 0); Assert.IsFalse(world.CellDoesExist(0, 0)); Assert.AreEqual(0, world.CellCount()); }