public void Can_Get_Zones_For_GB() { var zones = TimeZoneNames.GetTimeZoneIdsForCountry("GB"); foreach (var zone in zones) { Debug.WriteLine(zone); } Assert.Equal(1, zones.Length); Assert.Equal("Europe/London", zones[0]); }
public void Can_Get_Zones_For_RU() { var zones = TimeZoneNames.GetTimeZoneIdsForCountry("RU"); foreach (var zone in zones) { Debug.WriteLine(zone); } Assert.Equal(21, zones.Length); Assert.True(zones.Contains("Europe/Moscow")); Assert.True(zones.Contains("Europe/Kaliningrad")); Assert.True(zones.Contains("Asia/Vladivostok")); Assert.True(zones.Contains("Asia/Kamchatka")); Assert.True(!zones.Contains("Europe/London")); }
public void Can_Get_Zones_For_US() { var zones = TimeZoneNames.GetTimeZoneIdsForCountry("US"); foreach (var zone in zones) { Debug.WriteLine(zone); } Assert.Equal(29, zones.Length); Assert.True(zones.Contains("America/New_York")); Assert.True(zones.Contains("America/Chicago")); Assert.True(zones.Contains("America/Denver")); Assert.True(zones.Contains("America/Los_Angeles")); Assert.True(zones.Contains("America/Phoenix")); Assert.True(zones.Contains("Pacific/Honolulu")); Assert.True(!zones.Contains("Europe/London")); }