public void GetValueWithoutLocalInstant_ThrowsOnOverflow() { DurationField field = new StubDurationField(); Assert.Throws<OverflowException>(() => field.GetValue(new Duration(long.MaxValue))); }
public void GetValueWithoutLocalInstant_UsesUnitTicks() { DurationField field = new StubDurationField(); Assert.AreEqual(9, field.GetValue(new Duration(1200L))); }