Пример #1
0
 public static void SequencerSingleCycleRun(this ITestTcoSequencerAutoRestorable sequencer, Action action)
 {
     sequencer.ContextOpen();
     sequencer.SequencerOpen();
     action();
     sequencer.SequencerClose();
     sequencer.ContextClose();
 }
Пример #2
0
 public static void SequencerRunUntilEndConditionIsMet(this ITestTcoSequencerAutoRestorable sequencer, Action action, Func <bool> endCondition)
 {
     while (!endCondition())
     {
         sequencer.ContextOpen();
         sequencer.SequencerOpen();
         action();
         sequencer.SequencerClose();
         sequencer.ContextClose();
     }
 }
Пример #3
0
        public static void SequencerRunUntilActionDone(this ITestTcoSequencerAutoRestorable 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 ITestTcoSequencerAutoRestorable sequencer, Action action, ushort cycles)
        {
            ushort i = 0;

            while (i < cycles)
            {
                sequencer.ContextOpen();
                sequencer.SequencerOpen();
                action();
                sequencer.SequencerClose();
                sequencer.ContextClose();
                i++;
            }
        }