Skip to content

Commit

Permalink
Check returned values first (#189)
Browse files Browse the repository at this point in the history
* Check returned values first

* Remove Scorebysund from test that no longer is in the requested timezone
  • Loading branch information
ermshiperete authored Mar 13, 2024
1 parent 4990b09 commit c3dc570
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/icu.net.tests/TimeZoneTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ public void GetOffsetTimeZonesTest()
{
var timezones = TimeZone.GetTimeZones(USystemTimeZoneType.Any, null, -1 * 3600 * 1000);

Assert.GreaterOrEqual(timezones.Count(), 4);
Assert.AreEqual(1, timezones.Count(tz => tz.Id == "Atlantic/Azores"));
Assert.AreEqual(1, timezones.Count(tz => tz.Id == "America/Scoresbysund"));
Assert.AreEqual(1, timezones.Count(tz => tz.Id == "Atlantic/Cape_Verde"));
Assert.AreEqual(1, timezones.Count(tz => tz.Id == "Etc/GMT+1"));
Assert.GreaterOrEqual(timezones.Count(), 3);
}

[Test]
Expand Down

0 comments on commit c3dc570

Please sign in to comment.