Skip to content

Commit

Permalink
Skip test if Jordan update not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Oct 31, 2022
1 parent 278e6f1 commit c295e8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/TimeZoneNames.Tests/DisplayNamesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public void Can_Get_DisplayNames_For_OS_Culture()
// This test requires Windows
Skip.IfNot(RuntimeInformation.IsOSPlatform(OSPlatform.Windows));

// The data has an update for Jordan Standard Time that might not yet be installed
Skip.If(!TimeZoneInfo.FindSystemTimeZoneById("Jordan Standard Time").DisplayName.Contains("+03:00"));

var languageCode = CultureInfo.InstalledUICulture.IetfLanguageTag;

var displayNames = TZNames.GetDisplayNames(languageCode);
Expand Down

0 comments on commit c295e8f

Please sign in to comment.