Exemplo n.º 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)));
        }
Exemplo n.º 2
0
 public TestTaskHelper(TestTime time)
 {
     _time = time;
 }
Exemplo n.º 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));
        }