public ControlTestBinaryDefault(InputDevice device, InputFeatureUsage usage) : base(device, usage) { Description = "Binary control should default to false when the control is not actuated. Verify that the device defaults to false and then manually pass this test."; CertReqID = "1.2.3.x"; Checks = new Check[2]; Checks[0] = new CheckBinaryValueHitsFalse(DeviceUnderTest, FeatureUsageUnderTest, this); Checks[1] = new CheckRequireManualPass(DeviceUnderTest, FeatureUsageUnderTest, this); for (int i = 0; i < Checks.Length; i++) { Checks[i].ForcedFailure += HandleForcedFail; } }
public ControlTestBinaryRange(InputDevice device, InputFeatureUsage usage) : base(device, usage) { Description = "Binary range must hit both false and true to pass this test."; CertReqID = "1.2.3.x"; Checks = new Check[3]; Checks[0] = new CheckBinaryValueHitsFalse(DeviceUnderTest, FeatureUsageUnderTest, this); Checks[1] = new CheckBinaryValueHitsTrue(DeviceUnderTest, FeatureUsageUnderTest, this); Checks[2] = new CheckRequireManualPass(DeviceUnderTest, FeatureUsageUnderTest, this); for (int i = 0; i < Checks.Length; i++) { Checks[i].ForcedFailure += HandleForcedFail; } }