//glennj 9/12/2013 public void ClockJitterValueShouldBe(IAWG awg, string clockNumber, ClockJitterState jitterState) { var expectedValue = (jitterState == ClockJitterState.Off) ? ClockJitterStateOffSyntax : ClockJitterStateOnSyntax; string clockJitter = awg.ClockJitter(clockNumber); string possibleErrorString = "Checking the jitter for clock " + clockNumber; Assert.AreEqual(expectedValue, clockJitter, possibleErrorString); }
//glennj 6/7/2013 /// <summary> /// Sets whether low jitter is enabled on the system. /// </summary> /// <param name="awg">awg object</param> /// <param name="clockNumber">Which clock</param> /// <param name="jitterState"></param> public void SetClockJitter(IAWG awg, string clockNumber, ClockJitterState jitterState) { var setValue = (jitterState == ClockJitterState.Off) ? ClockJitterStateOffSyntax : ClockJitterStateOnSyntax; awg.SetClockJitter(clockNumber, setValue); }