Ejemplo n.º 1
0
        /// <summary>
        /// Sets the awg's instrument couple source
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="setValue"></param>
        public void SetTheAwgInstrumentCoupleSource(IAWG awg, InstrumentCoupleSource setValue)
        {
            string outSyntax = setValue == InstrumentCoupleSource.On
                                   ? InstrumentCoupleSourceOutSyntaxOn
                                   : InstrumentCoupleSourceOutSyntaxOff;

            awg.SetInstrumentCoupleSource(outSyntax);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Given an expected value compare it to the updated copy of the instrument couple source mode
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="expectedValue"></param>
        public void AwgInstrumentCoupleSourceShouldBe(IAWG awg, InstrumentCoupleSource expectedValue)
        {
            string inSyntax = expectedValue == InstrumentCoupleSource.On
                                   ? InstrumentCoupleSourceInSyntaxOn
                                   : InstrumentCoupleSourceInSyntaxOff;
            const string possibleErrorMessage = "Checking the returned Instrument Couple Source state";

            Assert.AreEqual(awg.InstrumentCoupleSource, inSyntax, possibleErrorMessage);
        }