-Added SpecialPropertiesHandling
This commit is contained in:
@@ -49,6 +49,24 @@ namespace Newtonsoft.Json.Tests.Linq
|
||||
[TestFixture]
|
||||
public class LinqToJsonTest : TestFixtureBase
|
||||
{
|
||||
[Test]
|
||||
public void JPropertyPath()
|
||||
{
|
||||
JObject o = new JObject
|
||||
{
|
||||
{
|
||||
"person",
|
||||
new JObject
|
||||
{
|
||||
{ "$id", 1 }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
JContainer idProperty = o["person"]["$id"].Parent;
|
||||
Assert.AreEqual("person.$id", idProperty.Path);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ForEach()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user