public void TestSetLimitsRawInvalid() { using (AnalogTrigger at = new AnalogTrigger(2)) { Assert.Throws<BoundaryException>(() => { at.SetLimitsRaw(150, 50); }); } }
public void TestSetLimitsRawValid() { using (AnalogTrigger at = new AnalogTrigger(2)) { at.SetLimitsRaw(50, 150); Assert.That(GetAnalogVoltageToValue(2, GetData(at.Index).TrigLower), Is.EqualTo(50)); Assert.That(GetAnalogVoltageToValue(2, GetData(at.Index).TrigUpper), Is.EqualTo(150)); } }