public void ExplicitNameAppearsInZoneInterval() { var zone = new FixedDateTimeZone("id", Offset.FromHours(5), "name"); var interval = zone.GetZoneInterval(NodaConstants.UnixEpoch); Assert.AreEqual("id", zone.Id); // Check we don't get this wrong... Assert.AreEqual("name", interval.Name); Assert.AreEqual("name", zone.Name); }
public void ZoneIntervalNameDefaultsToZoneId() { var zone = new FixedDateTimeZone("id", Offset.FromHours(5)); var interval = zone.GetZoneInterval(NodaConstants.UnixEpoch); Assert.AreEqual("id", interval.Name); Assert.AreEqual("id", zone.Name); }