-Modified project to support signed flag. Does not output InternalsVisibleTo attributes when present
-Improved error message on JObject and JArray Load method -Added WriteRawValue -Added missing XML documentation -Added SerializeObject overload that takes a formatting flag
This commit is contained in:
@@ -290,5 +290,13 @@ Parameter name: index")]
|
||||
Assert.AreEqual(j, v4.Parent);
|
||||
Assert.AreEqual(1, j.IndexOf(v4));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException(typeof(Exception), ExpectedMessage = "Error reading JArray from JsonReader. Current JsonReader item is not an array: StartObject")]
|
||||
public void Parse_ShouldThrowOnUnexpectedToken()
|
||||
{
|
||||
string json = @"{""prop"":""value""}";
|
||||
JArray.Parse(json);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user