File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
test/TimeZoneConverter.Tests Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public void Can_Convert_IANA_System_Zones_To_Windows()
4747 public void Can_Convert_Iana_Zones_To_Windows_Zones ( )
4848 {
4949 var errors = 0 ;
50- ICollection < string > ianaZones = TZConvert . KnownIanaTimeZoneNames ;
50+ ICollection < string > ianaZones = TZConvert . KnownIanaTimeZoneNames . ToList ( ) ;
5151
5252 string [ ] unmappable = { "Antarctica/Troll" } ;
5353
Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using System . Linq ;
23using Xunit ;
34using Xunit . Abstractions ;
45
@@ -17,7 +18,7 @@ public RailsToIanaTests(ITestOutputHelper output)
1718 public void Can_Convert_Rails_Zones_To_Iana_Zones ( )
1819 {
1920 var errors = 0 ;
20- ICollection < string > railsZones = TZConvert . KnownRailsTimeZoneNames ;
21+ ICollection < string > railsZones = TZConvert . KnownRailsTimeZoneNames . ToList ( ) ;
2122
2223 foreach ( string railsZone in railsZones )
2324 {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public void Can_Convert_Windows_System_Zones_To_Iana()
4545 public void Can_Convert_Windows_Zones_To_Iana_Golden_Zones ( )
4646 {
4747 var errors = 0 ;
48- ICollection < string > windowsZones = TZConvert . KnownWindowsTimeZoneIds ;
48+ ICollection < string > windowsZones = TZConvert . KnownWindowsTimeZoneIds . ToList ( ) ;
4949
5050 foreach ( string windowsZone in windowsZones )
5151 {
You can’t perform that action at this time.
0 commit comments