public void IVLValueTranslationTest() { IVL <TS> start = new IVL <TS>(DateTime.Parse("2001-01-01")); var translated = start.Translate(new PQ(1, "a")); Assert.AreEqual(2002, translated.Value.DateValue.Year); }
public void IVLLowHighTranslationTest() { IVL<TS> start = new IVL<TS>(DateTime.Parse("2001-01-01"), DateTime.Parse("2002-01-01")); var translated = start.Translate(new PQ(1, "a")); Assert.AreEqual(2002, translated.Low.DateValue.Year); Assert.AreEqual(2003, translated.High.DateValue.Year); }