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

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

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

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

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