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

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

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