From 17f87f53211af9645ab8b6947d79e9f4e0e3c6be Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Sun, 18 Sep 2016 16:04:38 +1200 Subject: [PATCH] -Build --- .../Serialization/TypeNameHandlingTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Src/Newtonsoft.Json.Tests/Serialization/TypeNameHandlingTests.cs b/Src/Newtonsoft.Json.Tests/Serialization/TypeNameHandlingTests.cs index 83593954..239f3230 100644 --- a/Src/Newtonsoft.Json.Tests/Serialization/TypeNameHandlingTests.cs +++ b/Src/Newtonsoft.Json.Tests/Serialization/TypeNameHandlingTests.cs @@ -1301,8 +1301,8 @@ namespace Newtonsoft.Json.Tests.Serialization string json = JsonConvert.SerializeObject(message, Formatting.Indented, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.All, - TypeNameAssemblyFormat = FormatterAssemblyStyle.Full, #pragma warning disable CS0618 // Type or member is obsolete + TypeNameAssemblyFormat = FormatterAssemblyStyle.Full, Binder = new MetroBinder(), #pragma warning restore CS0618 // Type or member is obsolete ContractResolver = new DefaultContractResolver @@ -2015,7 +2015,9 @@ namespace Newtonsoft.Json.Tests.Serialization JsonSerializerSettings serializerSettings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.All, +#pragma warning disable 618 TypeNameAssemblyFormat = FormatterAssemblyStyle.Simple +#pragma warning restore 618 }; Dictionary> dictionary = new Dictionary> @@ -2036,7 +2038,9 @@ namespace Newtonsoft.Json.Tests.Serialization JsonSerializerSettings serializerSettings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.All, +#pragma warning disable 618 TypeNameAssemblyFormat = FormatterAssemblyStyle.Full +#pragma warning restore 618 }; Dictionary> dictionary = new Dictionary>