Run unit tests on .NET Core 3.0 and fix Enumerable.Empty (#2137)

This commit is contained in:
James Newton-King
2019-08-19 12:57:09 +12:00
committed by GitHub
parent 083aa6df83
commit 5eac02a797
22 changed files with 300 additions and 81 deletions
+12 -6
View File
@@ -310,8 +310,10 @@ namespace Newtonsoft.Json.Tests.Linq
{
contains = o.ContainsKey(null);
Assert.AreEqual(false, contains);
}, @"Value cannot be null.
Parameter name: propertyName");
},
@"Value cannot be null.
Parameter name: propertyName",
"Value cannot be null. (Parameter 'propertyName')");
}
[Test]
@@ -359,8 +361,10 @@ Parameter name: propertyName");
{
JObject o = new JObject();
((ICollection<KeyValuePair<string, JToken>>)o).CopyTo(null, 0);
}, @"Value cannot be null.
Parameter name: array");
},
@"Value cannot be null.
Parameter name: array",
"Value cannot be null. (Parameter 'array')");
}
[Test]
@@ -370,8 +374,10 @@ Parameter name: array");
{
JObject o = new JObject();
((ICollection<KeyValuePair<string, JToken>>)o).CopyTo(new KeyValuePair<string, JToken>[1], -1);
}, @"arrayIndex is less than 0.
Parameter name: arrayIndex");
},
@"arrayIndex is less than 0.
Parameter name: arrayIndex",
"arrayIndex is less than 0. (Parameter 'arrayIndex')");
}
[Test]