Example #1
0
        public void JObject_PathName_WithArray_Test1()
        {
            var path = new JObjectPath(x => x.ScanArr["a"]);

            path.PathName().Should().Be("JObject : [].a");
        }
Example #2
0
        public void JObject_PathName_Empty_Test()
        {
            var path = new JObjectPath(x => x);

            path.PathName().Should().Be("JObject");
        }
Example #3
0
        public void JObject_PathName_WithArray_Test()
        {
            var path = new JObjectPath(x => x["a"].ScanArr);

            path.PathName().Should().Be("JObject : a.[]");
        }
Example #4
0
        public void JObject_PathName_Test()
        {
            var path = new JObjectPath(x => x["field"]["other"]);

            path.PathName().Should().Be("JObject : field.other");
        }