예제 #1
0
        public void ToJsonClosedDigitTest()
        {
            var cell = new Cell();

            Assert.IsTrue(cell.IsClosed());
            Assert.AreEqual("F", cell.ToJson());
        }
예제 #2
0
        public void IsNoyClosedIfMissAWallsTest()
        {
            var cell = new Cell();

            cell.Carve(Direction.N);

            Assert.IsFalse(cell.IsClosed());
        }
예제 #3
0
        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());
        }