-Changed StringEnumConverter.AllowIntegerValues to also reject writing enum values with no name

This commit is contained in:
James Newton-King
2017-03-19 16:46:33 +13:00
parent 937b25be20
commit 7673a18e55
16 changed files with 103 additions and 861 deletions
@@ -1052,7 +1052,7 @@ namespace Newtonsoft.Json.Tests.Converters
[Test]
public void NoRootObject()
{
ExceptionAssert.Throws<JsonSerializationException>(() => { XmlDocument newDoc = (XmlDocument)JsonConvert.DeserializeXmlNode(@"[1]"); }, "XmlNodeConverter can only convert JSON that begins with an object.");
ExceptionAssert.Throws<JsonSerializationException>(() => { XmlDocument newDoc = (XmlDocument)JsonConvert.DeserializeXmlNode(@"[1]"); }, "XmlNodeConverter can only convert JSON that begins with an object. Path '', line 1, position 1.");
}
[Test]