From 10ade486a2b3e7564acc5883da4e71f8808a2787 Mon Sep 17 00:00:00 2001 From: campersau Date: Sat, 15 Jan 2022 22:37:56 +0100 Subject: [PATCH] Test - Fix CanEvaluateDoubleValues by not relying on the current culture (#3966) --- CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs index 1b7aa7587..140a4a766 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs @@ -2,6 +2,7 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System.Globalization; using System.Threading.Tasks; using Xunit; using Xunit.Abstractions; @@ -64,7 +65,7 @@ namespace CefSharp.Test.Javascript Assert.False(browser.IsLoading); - var javascriptResponse = await browser.EvaluateScriptAsync(num.ToString()); + var javascriptResponse = await browser.EvaluateScriptAsync(num.ToString(CultureInfo.InvariantCulture)); Assert.True(javascriptResponse.Success); var actualType = javascriptResponse.Result.GetType();