From e954f70885b2db1c71c56b06e86cea44be6a0cec Mon Sep 17 00:00:00 2001 From: Oleks Date: Wed, 22 Feb 2023 18:37:39 +0100 Subject: [PATCH] Make sure to use same type for AreEqual arguments --- Src/Newtonsoft.Json.Tests/JsonConvertTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs b/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs index 0a9925b71..b274bc5cd 100644 --- a/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs +++ b/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs @@ -1592,7 +1592,7 @@ public void CustomDoubleRounding() [Test] public void DoubleRoundTrip() { - var x = 0.1 + 0.2; + double x = 0.1 + 0.2; var y = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(x)); Assert.AreEqual(x, y); }