示例#1
0
 public void AdvanceTicks()
 {
     FakeClock clock = new FakeClock(Instant.FromUnixTimeTicks(100L));
     clock.AdvanceTicks(3);
     Assert.AreEqual(103, clock.GetCurrentInstant().ToUnixTimeTicks());
 }
示例#2
0
 public void AdvanceTicks()
 {
     FakeClock clock = new FakeClock(Instant.FromTicksSinceUnixEpoch(100L));
     clock.AdvanceTicks(3);
     Assert.AreEqual(103, clock.GetCurrentInstant().Ticks);
 }