Searched refs:tolerance (Results 1 – 1 of 1) sorted by relevance
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Testing/ |
| D | LEDTester.cs | 176 …er AssertDutyCycle(float testDuration, double expectedDutyCycle, double tolerance = 0.05, bool pau… in AssertDutyCycle() argument 180 ValidateArgument(tolerance, nameof(tolerance), min: 0, max: 1); in AssertDutyCycle() 208 …if(highPercentage < expectedDutyCycle - (tolerance * 100) || expectedDutyCycle > expectedDutyCycle… in AssertDutyCycle() 223 …nking(float testDuration, double onDuration, double offDuration, double tolerance = 0.05, bool pau… in AssertIsBlinking() argument 237 if(!IsInRange(dt.TotalSeconds, expectedDuration, tolerance)) in AssertIsBlinking() 270 private bool IsInRange(double actualValue, double expectedValue, double tolerance) in IsInRange() argument 272 …return (actualValue >= expectedValue * (1 - tolerance)) && (actualValue <= (expectedValue * (1 + t… in IsInRange()
|