-Changed JToken.Children to return an empty iterator rather than erroring

This commit is contained in:
JamesNK
2011-10-01 05:37:08 +00:00
parent 3baf856f92
commit 14b8661c92
2 changed files with 2 additions and 2 deletions
@@ -148,11 +148,11 @@ namespace Newtonsoft.Json.Tests.Linq
}
[Test]
[ExpectedException(typeof(InvalidOperationException), ExpectedMessage = "Cannot access child value on Newtonsoft.Json.Linq.JValue.")]
public void Children()
{
JValue v = new JValue(true);
var c = v.Children();
Assert.AreEqual(JEnumerable<JToken>.Empty, c);
}
[Test]