Esempio n. 1
0
 public static void RunUntilEndConditionIsMet(this ITestTcoContext context, Action action, Func <bool> endCondition)
 {
     while (!endCondition())
     {
         context.ContextOpen();
         action();
         context.ContextClose();
     }
 }
Esempio n. 2
0
        public static void RunUntilActionDone(this ITestTcoContext context, Func <bool> action)
        {
            bool actionDone = false;

            while (!actionDone)
            {
                context.ContextOpen();
                actionDone = action();
                context.ContextClose();
            }
        }
Esempio n. 3
0
        public static void MultipleCycleRun(this ITestTcoContext context, Action action, ushort cycles)
        {
            ushort i = 0;

            while (i < cycles)
            {
                context.ContextOpen();
                action();
                context.ContextClose();
                i++;
            }
        }
Esempio n. 4
0
 public static void SingleCycleRun(this ITestTcoContext context, Action action)
 {
     context.ContextOpen();
     action();
     context.ContextClose();
 }
Esempio n. 5
0
 //TcoContext
 public static void AddEmptyCycle(this ITestTcoContext context)
 {
     context.ContextOpen();
     context.ContextClose();
 }