Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Nov 14, 2022
1 parent f4f3db7 commit 9112e5f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/TimeZoneConverter.Tests/TimeZoneInfoTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ public void CanGetAntarcticaTroll()
var tz = TZConvert.GetTimeZoneInfo("Antarctica/Troll");
Assert.NotNull(tz);
Assert.Equal(TimeSpan.Zero, tz.BaseUtcOffset);
Assert.Equal("(UTC+00:00) Troll Station, Antarctica", tz.DisplayName);
Assert.Equal("Greenwich Mean Time", tz.StandardName);
Assert.Equal("Central European Summer Time", tz.DaylightName);

if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
// This is the custom info we set
Assert.Equal("(UTC+00:00) Troll Station, Antarctica", tz.DisplayName);
Assert.Equal("Greenwich Mean Time", tz.StandardName);
Assert.Equal("Central European Summer Time", tz.DaylightName);
}

var dto1 = DateTimeOffset.Parse("2020-01-01T00:00:00Z", CultureInfo.InvariantCulture);
var dto2 = DateTimeOffset.Parse("2020-07-01T00:00:00Z", CultureInfo.InvariantCulture);
Expand Down

0 comments on commit 9112e5f

Please sign in to comment.