public void AdvanceMilliseconds() { FakeClock clock = new FakeClock(Instant.FromUnixTimeTicks(100L)); clock.AdvanceMilliseconds(3); Assert.AreEqual(100 + 3 * NodaConstants.TicksPerMillisecond, clock.GetCurrentInstant().ToUnixTimeTicks()); }
public void AdvanceMilliseconds() { FakeClock clock = new FakeClock(new Instant(100L)); clock.AdvanceMilliseconds(3); Assert.AreEqual(100 + 3 * NodaConstants.TicksPerMillisecond, clock.Now.Ticks); }