Update Newtonsoft.Json project to use nullable reference types (#1950)

This commit is contained in:
James Newton-King
2019-07-29 09:13:42 +12:00
committed by GitHub
parent f940f21804
commit cdf10151d5
169 changed files with 2264 additions and 1859 deletions
@@ -24,6 +24,7 @@
#endregion
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
@@ -727,6 +728,17 @@ namespace Newtonsoft.Json.Tests.Serialization
}
}
[Test]
public void NonGenericDictionary_KeyValueTypes()
{
DefaultContractResolver resolver = new DefaultContractResolver();
JsonDictionaryContract c = (JsonDictionaryContract)resolver.ResolveContract(typeof(IDictionary));
Assert.IsNull(c.DictionaryKeyType);
Assert.IsNull(c.DictionaryValueType);
}
[Test]
public void DefaultContractResolverIgnoreIsSpecifiedTrue()
{