public static void SequencerSingleCycleRun(this ITestTcoSequencerNonAutoRestorable sequencer, Action action) { sequencer.ContextOpen(); sequencer.SequencerOpen(); action(); sequencer.SequencerClose(); sequencer.ContextClose(); }
public static void SequencerRunUntilEndConditionIsMet(this ITestTcoSequencerNonAutoRestorable sequencer, Action action, Func <bool> endCondition) { while (!endCondition()) { sequencer.ContextOpen(); sequencer.SequencerOpen(); action(); sequencer.SequencerClose(); sequencer.ContextClose(); } }
public static void SequencerRunUntilActionDone(this ITestTcoSequencerNonAutoRestorable sequencer, Func <bool> action) { bool actionDone = false; while (!actionDone) { sequencer.ContextOpen(); sequencer.SequencerOpen(); action(); sequencer.SequencerClose(); sequencer.ContextClose(); } }
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++; } }
//TcoSequencerNonAutoRestorable public static void AddEmptyCycle(this ITestTcoSequencerNonAutoRestorable sequencer) { sequencer.ContextOpen(); sequencer.ContextClose(); }