Run unit tests on .NET Core 3.0 and fix Enumerable.Empty (#2137)
This commit is contained in:
@@ -381,12 +381,12 @@ namespace Newtonsoft.Json.Tests.Schema
|
||||
#endif
|
||||
};
|
||||
|
||||
JsonSchema schema = generator.Generate(typeof(Version), true);
|
||||
JsonSchema schema = generator.Generate(typeof(VersionOld), true);
|
||||
|
||||
string json = schema.ToString();
|
||||
|
||||
StringAssert.AreEqual(@"{
|
||||
""id"": ""System.Version"",
|
||||
""id"": ""Newtonsoft.Json.Tests.TestObjects.VersionOld"",
|
||||
""type"": [
|
||||
""object"",
|
||||
""null""
|
||||
|
||||
Reference in New Issue
Block a user