Esempio n. 1
0
 public static void SequencerSingleCycleRun(this ITestTcoSequencerNonAutoRestorable sequencer, Action action)
 {
     sequencer.ContextOpen();
     sequencer.SequencerOpen();
     action();
     sequencer.SequencerClose();
     sequencer.ContextClose();
 }
Esempio n. 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();
     }
 }
Esempio n. 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();
            }
        }
Esempio n. 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++;
            }
        }
Esempio n. 5
0
 //TcoSequencerNonAutoRestorable
 public static void AddEmptyCycle(this ITestTcoSequencerNonAutoRestorable sequencer)
 {
     sequencer.ContextOpen();
     sequencer.ContextClose();
 }