-Formatting

-Build
This commit is contained in:
James Newton-King
2015-12-04 23:54:38 +13:00
parent c96779dc10
commit eb0cbd6a75
334 changed files with 3952 additions and 514 deletions
@@ -102,7 +102,9 @@ namespace Newtonsoft.Json.Tests.Serialization
protected override JsonContract CreateContract(Type objectType)
{
if (objectType == typeof(Employee))
{
objectType = typeof(IPerson);
}
return base.CreateContract(objectType);
}
@@ -129,7 +131,7 @@ namespace Newtonsoft.Json.Tests.Serialization
p.PropertyType = typeof(int);
Assert.AreEqual(0 , p.GetResolvedDefaultValue());
Assert.AreEqual(0, p.GetResolvedDefaultValue());
Assert.AreEqual(null, p.DefaultValue);
p.PropertyType = typeof(DateTime);
@@ -223,7 +225,7 @@ namespace Newtonsoft.Json.Tests.Serialization
}
public class CustomList<T> : List<T>
{
{
}
[Test]
@@ -487,7 +489,7 @@ namespace Newtonsoft.Json.Tests.Serialization
contract.OverrideCreator = args =>
{
ensureCustomCreatorCalled = true;
return new MultipleParamatrizedConstructorsJsonConstructor((string) args[0], (int) args[1]);
return new MultipleParamatrizedConstructorsJsonConstructor((string)args[0], (int)args[1]);
};
#pragma warning disable 618
Assert.IsNull(contract.OverrideConstructor);