Skip to content

Commit ba6546c

Browse files
committed
test: re-enable skipped test and ad new TZ ID data
1 parent 58ff321 commit ba6546c

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

‎src/NetCoreForce.Client.Tests/DateFormatTests.cs‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,10 @@ private string GetTimeSpanFormat(TimeSpan ts)
7575
return (ts < TimeSpan.Zero ? "\\-" : "\\+") + "hh\\:mm";
7676
}
7777

78-
[Theory(Skip = "Disabled due to TZ mocker issues")]
79-
[InlineData("America/New_York")]
80-
[InlineData("America/Phoenix")]
81-
[InlineData("Europe/London")]
82-
[InlineData("Asia/Tokyo")]
83-
[InlineData("Asia/Kathmandu")] // Nepal Time (UTC+5:45)
84-
[InlineData("Pacific/Auckland")]
85-
[InlineData("Europe/Moscow")]
86-
[InlineData("Asia/Shanghai")]
78+
public static TheoryData<string> TimeZoneIdData => new TheoryData<string>(TimeZoneIds.All);
79+
80+
[Theory]
81+
[MemberData(nameof(TimeZoneIdData))]
8782
public void FullDateFormat_From_Other_Timezone(string timeZoneId)
8883
{
8984
using (new LocalTimeZoneInfoMocker(TimeZoneInfo.FindSystemTimeZoneById(timeZoneId)))

0 commit comments

Comments
 (0)