예제 #1
0
        public static T Run <T>(Func <ITime, ITaskHelper, Task <T> > test, int threadCount = 1, Instant?startInstant = null)
        {
            var time = new TestTime(threadCount, startInstant);

            return(time.Run(() => test(time, time.TaskHelper)));
        }
예제 #2
0
 public TestTaskHelper(TestTime time)
 {
     _time = time;
 }
예제 #3
0
        public static void Run(Func <ITime, ITaskHelper, Task> test, int threadCount = 1, Instant?startInstant = null)
        {
            var time = new TestTime(threadCount, startInstant);

            time.Run(() => test(time, time.TaskHelper));
        }