Пример #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));
        }