Fix RegionInfo.DisplayName test (dotnet/corefx#42088)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Thu, 24 Oct 2019 18:43:50 +0000 (11:43 -0700)
committerStephen Toub <stoub@microsoft.com>
Thu, 24 Oct 2019 18:43:50 +0000 (14:43 -0400)
Commit migrated from https://github.com/dotnet/corefx/commit/974fe33fbdfc1b8a47671070ce99bc1114eec2a8

src/libraries/System.Globalization/tests/System/Globalization/RegionInfoTests.cs

index 459a369..b6a4e0a 100644 (file)
@@ -68,7 +68,7 @@ namespace System.Globalization.Tests
         [OuterLoop("May fail on machines with multiple language packs installed")] // https://github.com/dotnet/corefx/issues/39177
         public void DisplayName(string name, string expected)
         {
-            using (new ThreadCultureChange(name))
+            using (new ThreadCultureChange(null, new CultureInfo(name)))
             {
                 Assert.Equal(expected, new RegionInfo(name).DisplayName);
             }