public void GivenInsufficientClearanceWhenAllClearanceIsRequiredResultsFalse() { checkable.SetClearance(new List <Clearance> { Clearance.Atmospherics, Clearance.Engine }); checkable.SetCheckType(CheckType.All); Assert.False(AttemptAccess(new List <Clearance> { Clearance.Atmospherics })); }
public void SetUp() { var mockDoor = new GameObject(); checkable = mockDoor.AddComponent <ClearanceCheckable>(); checkable.SetCheckType(CheckType.Any); }