Пример #1
0
        public void GivenInsufficientClearanceWhenAllClearanceIsRequiredResultsFalse()
        {
            checkable.SetClearance(new List <Clearance> {
                Clearance.Atmospherics, Clearance.Engine
            });
            checkable.SetCheckType(CheckType.All);

            Assert.False(AttemptAccess(new List <Clearance> {
                Clearance.Atmospherics
            }));
        }
Пример #2
0
        public void SetUp()
        {
            var mockDoor = new GameObject();

            checkable = mockDoor.AddComponent <ClearanceCheckable>();
            checkable.SetCheckType(CheckType.Any);
        }