-Changed blank XML elements to be written as an empty string instead of null

-Added support for XML document type
-Changed string JValue with a null value to be written as null instead of empty string
-Fixed StringEnumConverter thread safety
This commit is contained in:
James Newton-King
2014-04-25 22:36:35 +12:00
parent c2a9124067
commit 9133626388
18 changed files with 521 additions and 225 deletions
@@ -88,7 +88,7 @@ namespace Newtonsoft.Json.Tests.Linq
Assert.AreEqual(0.99, (double)root[5]);
Assert.AreEqual(0.000000000000000001d, (double)root[6]);
Assert.AreEqual(0.000000000000000001m, (decimal)root[7]);
Assert.AreEqual(string.Empty, (string)root[8]);
Assert.AreEqual(null, (string)root[8]);
Assert.AreEqual("This is a string.", (string)root[9]);
Assert.AreEqual(null, ((JValue)root[10]).Value);
Assert.AreEqual(null, ((JValue)root[11]).Value);