示例#1
0
 public static void SequencerSingleCycleRun(this ITestTcoSequencerNonAutoRestorable sequencer, Action action)
 {
     sequencer.ContextOpen();
     sequencer.SequencerOpen();
     action();
     sequencer.SequencerClose();
     sequencer.ContextClose();
 }
示例#2
0
 public static void SequencerRunUntilEndConditionIsMet(this ITestTcoSequencerNonAutoRestorable sequencer, Action action, Func <bool> endCondition)
 {
     while (!endCondition())
     {
         sequencer.ContextOpen();
         sequencer.SequencerOpen();
         action();
         sequencer.SequencerClose();
         sequencer.ContextClose();
     }
 }
示例#3
0
        public static void SequencerRunUntilActionDone(this ITestTcoSequencerNonAutoRestorable sequencer, Func <bool> action)
        {
            bool actionDone = false;

            while (!actionDone)
            {
                sequencer.ContextOpen();
                sequencer.SequencerOpen();
                action();
                sequencer.SequencerClose();
                sequencer.ContextClose();
            }
        }
示例#4
0
        public static void SequencerMultipleCyclesRun(this ITestTcoSequencerNonAutoRestorable sequencer, Action action, ushort cycles)
        {
            ushort i = 0;

            while (i < cycles)
            {
                sequencer.ContextOpen();
                sequencer.SequencerOpen();
                action();
                sequencer.SequencerClose();
                sequencer.ContextClose();
                i++;
            }
        }
示例#5
0
 //TcoSequencerNonAutoRestorable
 public static void AddEmptyCycle(this ITestTcoSequencerNonAutoRestorable sequencer)
 {
     sequencer.ContextOpen();
     sequencer.ContextClose();
 }