Update to net50 and fix warnings (#2424)
This commit is contained in:
@@ -187,7 +187,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
{
|
||||
Dictionary<float, int> dictionary = new Dictionary<float, int> { { float.MaxValue, 1 } };
|
||||
string output = JsonConvert.SerializeObject(dictionary);
|
||||
#if !NETSTANDARD2_0
|
||||
#if !(NETSTANDARD2_0 || NETSTANDARD1_3)
|
||||
Assert.AreEqual(@"{""3.40282347E+38"":1}", output);
|
||||
#else
|
||||
Assert.AreEqual(@"{""3.4028235E+38"":1}", output);
|
||||
|
||||
@@ -2258,7 +2258,7 @@ keyword such as type of business.""
|
||||
string json = JsonConvert.SerializeObject(new ConverableMembers(), Formatting.Indented);
|
||||
|
||||
string expected = null;
|
||||
#if NETSTANDARD2_0
|
||||
#if (NETSTANDARD2_0)
|
||||
expected = @"{
|
||||
""String"": ""string"",
|
||||
""Int32"": 2147483647,
|
||||
@@ -2275,7 +2275,23 @@ keyword such as type of business.""
|
||||
""Bool"": true,
|
||||
""Char"": ""\u0000""
|
||||
}";
|
||||
#elif !(PORTABLE || DNXCORE50)
|
||||
#elif NETSTANDARD1_3
|
||||
expected = @"{
|
||||
""String"": ""string"",
|
||||
""Int32"": 2147483647,
|
||||
""UInt32"": 4294967295,
|
||||
""Byte"": 255,
|
||||
""SByte"": 127,
|
||||
""Short"": 32767,
|
||||
""UShort"": 65535,
|
||||
""Long"": 9223372036854775807,
|
||||
""ULong"": 9223372036854775807,
|
||||
""Double"": 1.7976931348623157E+308,
|
||||
""Float"": 3.4028235E+38,
|
||||
""Bool"": true,
|
||||
""Char"": ""\u0000""
|
||||
}";
|
||||
#elif !(PORTABLE || DNXCORE50) || NETSTANDARD1_3
|
||||
expected = @"{
|
||||
""String"": ""string"",
|
||||
""Int32"": 2147483647,
|
||||
|
||||
Reference in New Issue
Block a user