Update .NET 6 tests (#2678)

This commit is contained in:
James Newton-King
2022-05-16 17:13:53 +08:00
committed by GitHub
parent bf2e2a78e8
commit 5803c7722a
108 changed files with 262 additions and 262 deletions
@@ -68,7 +68,7 @@ namespace Newtonsoft.Json.Tests.Serialization
public void GetAttributes_Property()
{
PropertyInfo property;
#if DNXCORE50 && !NETSTANDARD2_0
#if DNXCORE50 && !(NETSTANDARD2_0 || NET6_0_OR_GREATER)
property = Newtonsoft.Json.Utilities.TypeExtensions.GetProperty(typeof(ReflectionTestObject), "TestProperty");
#else
property = typeof(ReflectionTestObject).GetProperty("TestProperty");
@@ -87,7 +87,7 @@ namespace Newtonsoft.Json.Tests.Serialization
public void GetAttributes_Field()
{
FieldInfo field;
#if DNXCORE50 && !NETSTANDARD2_0
#if DNXCORE50 && !(NETSTANDARD2_0 || NET6_0_OR_GREATER)
field = (FieldInfo)Newtonsoft.Json.Utilities.TypeExtensions.GetField(typeof(ReflectionTestObject), "TestField");
#else
field = typeof(ReflectionTestObject).GetField("TestField");