public void ToJsonClosedDigitTest() { var cell = new Cell(); Assert.IsTrue(cell.IsClosed()); Assert.AreEqual("F", cell.ToJson()); }
public void IsNoyClosedIfMissAWallsTest() { var cell = new Cell(); cell.Carve(Direction.N); Assert.IsFalse(cell.IsClosed()); }
public void IsClosedIfHasAllTheWallsTest() { var cell = new Cell(); Assert.IsTrue(cell.HasWall(Direction.N)); Assert.IsTrue(cell.HasWall(Direction.E)); Assert.IsTrue(cell.HasWall(Direction.S)); Assert.IsTrue(cell.HasWall(Direction.W)); Assert.IsTrue(cell.IsClosed()); }