コード例 #1
0
        public void AdvanceMilliseconds()
        {
            FakeClock clock = new FakeClock(Instant.FromUnixTimeTicks(100L));

            clock.AdvanceMilliseconds(3);
            Assert.AreEqual(100 + 3 * NodaConstants.TicksPerMillisecond, clock.GetCurrentInstant().ToUnixTimeTicks());
        }
コード例 #2
0
        public void AdvanceMilliseconds()
        {
            FakeClock clock = new FakeClock(new Instant(100L));

            clock.AdvanceMilliseconds(3);
            Assert.AreEqual(100 + 3 * NodaConstants.TicksPerMillisecond, clock.Now.Ticks);
        }