Example #1
0
        public void Can_Get_Abbreviations_For_IN1()
        {
            var abbreviations = TimeZoneNames.GetAbbreviationsForTimeZone("Asia/Calcutta", "en-US");

            Assert.Equal("IST", abbreviations.Generic);
            Assert.Equal("IST", abbreviations.Standard);
            Assert.Equal(null, abbreviations.Daylight);
        }
Example #2
0
        public void Can_Get_French_Abbreviations_For_US_Pacific()
        {
            var abbreviations = TimeZoneNames.GetAbbreviationsForTimeZone("America/Los_Angeles", "fr-CA");

            Assert.Equal("HP", abbreviations.Generic);
            Assert.Equal("HNP", abbreviations.Standard);
            Assert.Equal("HAP", abbreviations.Daylight);
        }
Example #3
0
        public void Can_Get_Abbreviations_For_IE()
        {
            var abbreviations = TimeZoneNames.GetAbbreviationsForTimeZone("Europe/Dublin", "en-US");

            Assert.Null(abbreviations.Generic);
            Assert.Equal("GMT", abbreviations.Standard);
            Assert.Equal("IST", abbreviations.Daylight);
        }
Example #4
0
        public void Can_Get_Abbreviations_For_US_Pacific()
        {
            var abbreviations = TimeZoneNames.GetAbbreviationsForTimeZone("America/Los_Angeles", "en-US");

            Assert.Equal("PT", abbreviations.Generic);
            Assert.Equal("PST", abbreviations.Standard);
            Assert.Equal("PDT", abbreviations.Daylight);
        }