Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public void FromMilliseconds_CalculatesCorrectTicks() { Assert.AreEqual(0, Instant.FromMilliseconds(0).Ticks); Assert.AreEqual(10000, Instant.FromMilliseconds(1).Ticks); Assert.AreEqual(20000, Instant.FromMilliseconds(2).Ticks); Assert.AreEqual(12345 * 10000, Instant.FromMilliseconds(12345).Ticks); Assert.AreEqual(-300000, Instant.FromMilliseconds(-30).Ticks); }