コード例 #1
0
ファイル: TestRunners.cs プロジェクト: jozefchmelar/TcOpen-1
 public static void RunUntilEndConditionIsMet(this ITestTcoComponent context, Action action, Func <bool> endCondition)
 {
     while (!endCondition())
     {
         context.ContextOpen();
         action();
         context.ContextClose();
     }
 }
コード例 #2
0
ファイル: TestRunners.cs プロジェクト: jozefchmelar/TcOpen-1
        public static void RunUntilActionDone(this ITestTcoComponent context, Func <bool> action)
        {
            bool actionDone = false;

            while (!actionDone)
            {
                context.ContextOpen();
                actionDone = action();
                context.ContextClose();
            }
        }
コード例 #3
0
ファイル: TestRunners.cs プロジェクト: jozefchmelar/TcOpen-1
        public static void MultipleCycleRun(this ITestTcoComponent context, Action action, ushort cycles)
        {
            ushort i = 0;

            while (i < cycles)
            {
                context.ContextOpen();
                action();
                context.ContextClose();
                i++;
            }
        }
コード例 #4
0
ファイル: TestRunners.cs プロジェクト: jozefchmelar/TcOpen-1
 public static void SingleCycleRun(this ITestTcoComponent context, Action action)
 {
     context.ContextOpen();
     action();
     context.ContextClose();
 }
コード例 #5
0
ファイル: TestRunners.cs プロジェクト: jozefchmelar/TcOpen-1
 //TcoComponent
 public static void AddEmptyCycle(this ITestTcoComponent context)
 {
     context.ContextOpen();
     context.ContextClose();
 }