From 0796691e92cb60e8d9a1459f5d0176bd216fa1f7 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs b/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs index 0a9925b71..f5ac38ef9 100644 --- a/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs +++ b/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs @@ -1592,8 +1592,8 @@ public void CustomDoubleRounding() [Test] public void DoubleRoundTrip() { - var x = 0.1 + 0.2; - var y = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(x)); + double x = 0.1 + 0.2; + double y = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(x)); Assert.AreEqual(x, y); }