-JSON Schema fixes

-Fixed static values being included with fields serialization
-Examples! (work in progress)
This commit is contained in:
James Newton-King
2013-01-23 21:39:54 +13:00
parent 9187d8a6b3
commit 68eacc480b
87 changed files with 3519 additions and 53 deletions
+5 -3
View File
@@ -96,11 +96,13 @@ namespace Newtonsoft.Json.Tests
{
public static void IsInstanceOfType(Type t, object instance)
{
#if !NETFX_CORE
#if (WINDOWS_PHONE || SILVERLIGHT)
Assert.IsInstanceOfType(t, instance);
#else
#elif NETFX_CORE
if (!instance.GetType().IsAssignableFrom(t))
throw new Exception("Blah");
throw new Exception("Not instance of type");
#else
Assert.IsInstanceOf(t, instance);
#endif
}