-Documentation

-Added Path to JsonWriterException
This commit is contained in:
James Newton-King
2012-05-07 23:16:24 +12:00
parent a8f4be59ab
commit d815dc7749
22 changed files with 299 additions and 124 deletions
@@ -104,7 +104,7 @@ namespace Newtonsoft.Json.Tests.Serialization
circularList.Add(new CircularList { new CircularList { circularList } });
ExceptionAssert.Throws<JsonSerializationException>(
"Self referencing loop detected for type '" + classRef + "'.",
"Self referencing loop detected with type '" + classRef + "'. Path '[2][0]'.",
() =>
{
JsonConvert.SerializeObject(circularList, Formatting.Indented);
@@ -264,7 +264,7 @@ namespace Newtonsoft.Json.Tests.Serialization
circularDictionary.Add("self", circularDictionary);
ExceptionAssert.Throws<JsonSerializationException>(
@"Self referencing loop detected for type '" + classRef + "'.",
@"Self referencing loop detected with type '" + classRef + "'. Path ''.",
() =>
{
JsonConvert.SerializeObject(circularDictionary, Formatting.Indented);