-Fixed build warnings
This commit is contained in:
@@ -102,6 +102,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
}
|
||||
|
||||
#if !(NETFX_CORE || PORTABLE || PORTABLE40)
|
||||
#pragma warning disable 618
|
||||
[Test]
|
||||
public void MemberSearchFlags()
|
||||
{
|
||||
@@ -133,6 +134,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
// readonly
|
||||
Assert.AreEqual(0, ReflectionUtils.GetMemberValue(typeof(PrivateMembersClass).GetField("i", BindingFlags.Instance | BindingFlags.NonPublic), deserializedPrivateMembersClass));
|
||||
}
|
||||
#pragma warning restore 618
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -214,6 +214,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
}
|
||||
|
||||
#if !(NETFX_CORE || PORTABLE || PORTABLE40)
|
||||
#pragma warning disable 618
|
||||
[Test]
|
||||
public void SerializeCompilerGeneratedMembers()
|
||||
{
|
||||
@@ -258,6 +259,7 @@ namespace Newtonsoft.Json.Tests.Serialization
|
||||
""IntProperty"": 2
|
||||
}", includeCompilerGeneratedJson);
|
||||
}
|
||||
#pragma warning restore 618
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user