-Fixed potential race condition serializing F# objects

-Fixed schema divisible sometimes incorrectly validating to false
-Fixed not calling virtual ShouldSerialize methods
This commit is contained in:
James Newton-King
2014-03-31 15:47:36 +13:00
parent de5f7dd8a8
commit 6965fcfa46
63 changed files with 4992 additions and 3302 deletions
@@ -308,6 +308,16 @@ namespace Newtonsoft.Json.Tests.Schema
});
}
[Test]
public void DivisibleBy_Approx()
{
JsonSchema schema = new JsonSchema();
schema.DivisibleBy = 0.01;
JValue v = new JValue(20.49);
v.Validate(schema);
}
[Test]
public void UniqueItems_SimpleUnique()
{