Пример #1
0
 public static void AdvanceByMilliSeconds(this TestScheduler source, int seconds)
 {
     if (source == null) throw new ArgumentNullException(nameof(source));
     source.AdvanceBy(TimeSpan.FromMilliseconds(seconds).Ticks);
 }
Пример #2
0
 public static void AdvanceBy(this TestScheduler scheduler, TimeSpan timespan)
 {
    scheduler.AdvanceBy(timespan.Ticks);
 }
 public static void AdvanceBy(this TestScheduler scheduler, TimeSpan duration)
 {
     scheduler.AdvanceBy(duration.Ticks);
 }