Example #1
0
        public void RoomCanBeEndOrBeginning()
        {
            var room = new DeadEndRoom(8, 8, 0);

            room.Beginning = true;

            Assert.True(room.Beginning);
            Assert.False(room.End);

            room.Beginning = false;
            room.End       = true;

            Assert.True(room.End);
            Assert.False(room.Beginning);
        }
Example #2
0
        public void DeadEndRoomWorks()
        {
            var room = new DeadEndRoom(2, 5, 1);

            Assert.True(room.HasDoorwayTo(1));
        }