Пример #1
0
        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());
        }
Пример #2
0
        public void ToJson1DigitTest()
        {
            var cell = new Cell();

            cell.Carve(Direction.N);

            Assert.AreEqual("7", cell.ToJson());
        }
Пример #3
0
        public void IsNoyClosedIfMissAWallsTest()
        {
            var cell = new Cell();

            cell.Carve(Direction.N);

            Assert.IsFalse(cell.IsClosed());
        }