public void ClockOutputStateShouldBe(IAWG awg, string clockNumber, ClockOutputState expectedValue) { string interpretiveValue = expectedValue == ClockOutputState.On ? ClockOutputStateOnSyntax : ClockOutputStateOffSyntax; string clockOutputState = awg.ClockOutputState(clockNumber); string possibleErrorString = "Checking the output state for clock " + clockNumber; Assert.AreEqual(interpretiveValue, clockOutputState, possibleErrorString); }
// Unkown 01/01/01 /// <summary> /// Sets the output state of the specified clock. /// </summary> /// <param name="awg">awg object</param> /// <param name="clockNumber">Which clock</param> /// <param name="outputState"></param> public void SetClockOutputState(IAWG awg, string clockNumber, ClockOutputState outputState) { string setValue = outputState == ClockOutputState.On ? ClockOutputStateOnSyntax : ClockOutputStateOffSyntax; awg.SetClockOutputState(clockNumber, setValue); }