예제 #1
0
        public void IsChokePointIsolated()
        {
            // A-B C
            TestFloorPlan floorPlan = TestFloorPlan.InitFloorToContext(
                new Loc(22, 14),
                new Rect[] { Rect.Empty, Rect.Empty, Rect.Empty },
                Array.Empty <Rect>(),
                new Tuple <char, char>[] { Tuple.Create('A', 'B') });

            bool result = floorPlan.IsChokePoint(new RoomHallIndex(0, false));

            Assert.That(result, Is.EqualTo(false));
        }
예제 #2
0
        public void IsChokePointSingle()
        {
            // A
            TestFloorPlan floorPlan = TestFloorPlan.InitFloorToContext(
                new Loc(22, 14),
                new Rect[] { Rect.Empty },
                Array.Empty <Rect>(),
                Array.Empty <Tuple <char, char> >());

            bool result = floorPlan.IsChokePoint(new RoomHallIndex(0, false));

            Assert.That(result, Is.EqualTo(false));
        }