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

            while (!actionDone)
            {
                context.ContextOpen();
                actionDone = action();
                context.ContextClose();
            }
        }
예제 #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++;
            }
        }
예제 #4
0
 public static void SingleCycleRun(this ITestTcoMessengerContext context, Action action)
 {
     context.ContextOpen();
     action();
     context.ContextClose();
 }
예제 #5
0
 //TcoMessengerContext
 public static void AddEmptyCycle(this ITestTcoMessengerContext context)
 {
     context.ContextOpen();
     context.ContextClose();
 }