From 1e28943d0063c5618271f3aae9e7ff4fc2050844 Mon Sep 17 00:00:00 2001 From: devsko Date: Fri, 23 Apr 2021 12:45:45 +0200 Subject: [PATCH] Fix test (#51729) --- .../CustomConverterTests.Dynamic.Sample.Tests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Dynamic.Sample.Tests.cs b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Dynamic.Sample.Tests.cs index 511267cdc7d..5b208c603ff 100644 --- a/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Dynamic.Sample.Tests.cs +++ b/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/Serialization/CustomConverterTests/CustomConverterTests.Dynamic.Sample.Tests.cs @@ -60,7 +60,7 @@ public static void VerifyPrimitives() double dbl = (double)obj; #if !BUILDING_INBOX_LIBRARY - string temp = dbl.ToString(); + string temp = dbl.ToString(System.Globalization.CultureInfo.InvariantCulture); // The reader uses "G17" format which causes temp to be 4.2000000000000002 in this case. dbl = double.Parse(temp, System.Globalization.CultureInfo.InvariantCulture); #endif -- GitLab