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); }
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); }
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); }
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); }
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); }
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); }