Esempio n. 1
0
        public void Can_Get_Names_For_IN1()
        {
            var names = TimeZoneNames.GetNamesForTimeZone("Asia/Calcutta", "en-US");

            Assert.Equal("India Standard Time", names.Generic);
            Assert.Equal("India Standard Time", names.Standard);
            Assert.Equal(null, names.Daylight);
        }
Esempio n. 2
0
        public void Can_Get_Names_For_US_Pacific()
        {
            var names = TimeZoneNames.GetNamesForTimeZone("America/Los_Angeles", "en-US");

            Assert.Equal("Pacific Time", names.Generic);
            Assert.Equal("Pacific Standard Time", names.Standard);
            Assert.Equal("Pacific Daylight Time", names.Daylight);
        }
Esempio n. 3
0
        public void Can_Get_Names_For_IE()
        {
            var names = TimeZoneNames.GetNamesForTimeZone("Europe/Dublin", "en-US");

            Assert.Equal("Ireland Time", names.Generic);
            Assert.Equal("Greenwich Mean Time", names.Standard);
            Assert.Equal("Irish Standard Time", names.Daylight);
        }
Esempio n. 4
0
        public void Can_Get_Names_For_UK()
        {
            var names = TimeZoneNames.GetNamesForTimeZone("Europe/London", "en-US");

            Assert.Equal("U.K. Time", names.Generic);
            Assert.Equal("Greenwich Mean Time", names.Standard);
            Assert.Equal("British Summer Time", names.Daylight);
        }
Esempio n. 5
0
        public void Can_Get_French_Names_For_US_Pacific()
        {
            var names = TimeZoneNames.GetNamesForTimeZone("America/Los_Angeles", "fr-CA");

            Assert.Equal("heure du Pacifique", names.Generic);
            Assert.Equal("heure normale du Pacifique", names.Standard);
            Assert.Equal("heure avancée du Pacifique", names.Daylight);
        }
Esempio n. 6
0
        public void Can_Get_Names_For_Windows_Timezone()
        {
            var names = TimeZoneNames.GetNamesForTimeZone("Eastern Standard Time", "en-US");

            Assert.Equal("Eastern Time", names.Generic);
            Assert.Equal("Eastern Standard Time", names.Standard);
            Assert.Equal("Eastern Daylight Time", names.Daylight);
        }