Пример #1
0
        public void Should_Init_TimeZones()
        {
            var sweden = TimeZoneKeeper.GetTimeZone(TimeZones.Sweden);
            var utc    = TimeZoneKeeper.GetTimeZone(TimeZones.Utc);

            Assert.NotNull(sweden);
            Assert.NotNull(utc);
        }
Пример #2
0
 public void Should_Throw_On_Invalid_TimeZone()
 {
     Assert.Throws <ArgumentException>(() => TimeZoneKeeper.GetTimeZone("Åmål"));
 }