public void ToJsonOpenTest() { var cell = new Cell(); cell.Carve(Direction.N); cell.Carve(Direction.E); cell.Carve(Direction.S); cell.Carve(Direction.W); Assert.AreEqual("0", cell.ToJson()); }
public void ToJson1DigitTest() { var cell = new Cell(); cell.Carve(Direction.N); Assert.AreEqual("7", cell.ToJson()); }
public void IsNoyClosedIfMissAWallsTest() { var cell = new Cell(); cell.Carve(Direction.N); Assert.IsFalse(cell.IsClosed()); }