Test - Fix CanEvaluateDoubleValues by not relying on the current culture (#3966)

This commit is contained in:
campersau
2022-01-15 22:37:56 +01:00
committed by GitHub
parent 137a4bbe6f
commit 0401cf8abe
@@ -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();