//glennj 8/12/2013
        /// <summary>
        /// Using SLISt:SEQuence:STEP[n]:GOTO set the target step for the GOTO command<para>
        /// of the sequencer at the current step</para>
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="seqName"></param>
        /// <param name="mode">nr1|LAST|FIRSt|NEXT|END</param>
        /// <param name="step">Step from 1 to 16383</param>
        /// <param name="nr1Value"></param>
        public void SetSequenceStepGoto(IAWG awg, string seqName, string step, StepGotoMode mode, string nr1Value = "")
        {
            string gotoSetting;

            switch (mode)
            {
            case StepGotoMode.End:
                gotoSetting = SyntaxForStepGotoEnd;
                break;

            case StepGotoMode.First:
                gotoSetting = SyntaxForStepGotoFirst;
                break;

            case StepGotoMode.Last:
                gotoSetting = SyntaxForStepGotoLast;
                break;

            case StepGotoMode.Next:
                gotoSetting = SyntaxForStepGotoNext;
                break;

            default:
                gotoSetting = nr1Value;
                break;
            }
            awg.SetSequenceStepGoto(seqName, step, gotoSetting);
        }
        //glennj 8/12/2013
        /// <summary>
        /// Test for the expected the target step for the GOTO command against the updated property
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="stepNumber"></param>
        /// <param name="mode"></param>
        /// <param name="nr1Value"></param>
        /// <param name="seqName"></param>
        public void SequenceStepGotoShouldBe(IAWG awg, string seqName, string stepNumber, StepGotoMode mode, string nr1Value = "")
        {
            string expectedGotoSetting = "";

            if (mode == StepGotoMode.Nr1)
            {
                Assert.AreEqual(nr1Value, awg.SequenceStepGoto);
            }
            else
            {
                switch (mode)
                {
                case StepGotoMode.End:
                    expectedGotoSetting = SyntaxForStepGotoEnd;
                    break;

                case StepGotoMode.First:
                    expectedGotoSetting = SyntaxForStepGotoFirst;
                    break;

                case StepGotoMode.Last:
                    expectedGotoSetting = SyntaxForStepGotoLast;
                    break;

                case StepGotoMode.Next:
                    expectedGotoSetting = SyntaxForStepGotoNext;
                    break;
                }
                var possibleErrorString = "Expected: " + expectedGotoSetting + " Actual: " + awg.SequenceStepGoto;
                Assert.AreEqual(expectedGotoSetting, awg.SequenceStepGoto, possibleErrorString);
            }
        }