Ejemplo n.º 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
            }));
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            var mockDoor = new GameObject();

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