private void CheckMapping(ZoneLocalMapping mapping, ZoneInterval earlyInterval, ZoneInterval lateInterval, int count)
 {
     Assert.AreEqual(earlyInterval, mapping.EarlyInterval);
     Assert.AreEqual(lateInterval, mapping.LateInterval);
     Assert.AreEqual(count, mapping.Count);
 }
Esempio n. 2
0
 public static void Deconstruct(this ZoneLocalMapping mapping, out ZonedDateTime?first, out ZonedDateTime?last)
 {
     first = mapping.Count > 0 ? mapping.First() : (ZonedDateTime?)null;
     last  = mapping.Count == 2 ? mapping.Last() : (ZonedDateTime?)null;
 }
 private void CheckMapping(ZoneLocalMapping mapping, string earlyIntervalName, string lateIntervalName, int count)
 {
     Assert.AreEqual(earlyIntervalName, mapping.EarlyInterval.Name);
     Assert.AreEqual(lateIntervalName, mapping.LateInterval.Name);
     Assert.AreEqual(count, mapping.Count);
 }