-Removed generic SerializeObject methods

This commit is contained in:
James Newton-King
2015-12-12 18:14:57 +13:00
parent 2c7a51c50a
commit a5d1a41e14
4 changed files with 4 additions and 60 deletions
@@ -248,7 +248,7 @@ namespace Newtonsoft.Json.Tests.Serialization
[Test]
public void SerializeRootTypeNameAutoWithJsonConvert_Generic()
{
string json = JsonConvert.SerializeObject<object>(new WagePerson(), Formatting.Indented, new JsonSerializerSettings
string json = JsonConvert.SerializeObject(new WagePerson(), typeof(object), Formatting.Indented, new JsonSerializerSettings
{
TypeNameHandling = TypeNameHandling.Auto
});
@@ -265,7 +265,7 @@ namespace Newtonsoft.Json.Tests.Serialization
[Test]
public void SerializeRootTypeNameAutoWithJsonConvert_Generic2()
{
string json = JsonConvert.SerializeObject<object>(new WagePerson(), new JsonSerializerSettings
string json = JsonConvert.SerializeObject(new WagePerson(), typeof(object), new JsonSerializerSettings
{
TypeNameHandling = TypeNameHandling.Auto
});