-Added support for enum values to LINQ to JSON
-Added TypeNameAssemblyFormat property to JsonSerializer. Property controls whether .NET type names are written with a full or partial assembly name -Added TypeNameHandling to JsonProperty attribute. Allows a type names to be included on an individual property basis -Fixed serializing HashSet<T> -Additional permission demands added to DynamicCodeGeneration flag
This commit is contained in:
@@ -243,6 +243,8 @@ namespace Newtonsoft.Json.Tests.Linq
|
||||
|
||||
byte[] data = new byte[0];
|
||||
Assert.AreEqual(data, (byte[])(new JValue(data)));
|
||||
|
||||
Assert.AreEqual(5, (int)(new JValue(StringComparison.OrdinalIgnoreCase)));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -66,6 +66,10 @@ namespace Newtonsoft.Json.Tests.Linq
|
||||
|
||||
Assert.AreEqual(data, v.Value);
|
||||
Assert.AreEqual(JTokenType.Bytes, v.Type);
|
||||
|
||||
v.Value = StringComparison.OrdinalIgnoreCase;
|
||||
Assert.AreEqual(StringComparison.OrdinalIgnoreCase, v.Value);
|
||||
Assert.AreEqual(JTokenType.Integer, v.Type);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user