/// <summary>
        /// Test for the expected the Step Repeat Count against the updated property
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="seqName"></param>
        /// <param name="stepNumber"></param>
        /// <param name="mode"></param>
        /// <param name="nr1Value"></param>
        public void SequenceStepRepeatCountShouldBe(IAWG awg, string seqName, string stepNumber, StepRepeatCountMode mode, string nr1Value = "")
        {
            string expectedRepeatCount = "";

            if (mode == StepRepeatCountMode.Nr1)
            {
                float convertedNr1Value = 0;
                try
                {
                    convertedNr1Value = float.Parse(nr1Value);
                }
                catch (Exception)
                {
                    Assert.Fail("Not a valid number for a step");
                }
                Assert.AreEqual(convertedNr1Value, float.Parse(awg.SequenceStepRepeatCount));
            }
            else
            {
                switch (mode)
                {
                case StepRepeatCountMode.Once:
                    expectedRepeatCount = SyntaxForStepRepeatCountOnce;
                    break;

                case StepRepeatCountMode.Infinite:
                    expectedRepeatCount = SyntaxForStepRepeatCountInfinite;
                    break;
                }
                var possibleErrorString = "Expected: " + expectedRepeatCount + " Actual: " + awg.SequenceStepGoto;
                Assert.AreEqual(expectedRepeatCount, awg.SequenceStepRepeatCount, possibleErrorString);
            }
        }
        //glennj 8/12/2013
        /// <summary>
        /// Using SLISt:SEQuence:STEP:RCOunt set the repeat count
        /// </summary>
        /// <param name="awg"></param>
        /// <param name="seqName"></param>
        /// <param name="step">Step from 1 to 16383</param>
        /// <param name="mode">nr1|ONCE|INFinite</param>
        /// <param name="nr1Value"></param>
        public void SetSequenceStepRepeatCount(IAWG awg, string seqName, string step, StepRepeatCountMode mode, string nr1Value = "")
        {
            string repeatCount;

            switch (mode)
            {
            case StepRepeatCountMode.Once:
                repeatCount = SyntaxForStepRepeatCountOnce;
                break;

            case StepRepeatCountMode.Infinite:
                repeatCount = SyntaxForStepRepeatCountInfinite;
                break;

            default:
                repeatCount = nr1Value;
                break;
            }
            awg.SetSequenceStepRepeatCount(seqName, step, repeatCount);
        }