public void Matches_RecursiveDescent(string propertyName, string otherPropertyName, bool expected)
        {
            var element = new JsonPathRecursiveDescentElement(new JsonPathPropertyElement(propertyName));
            var other   = new JsonPathRecursiveDescentElement(new JsonPathPropertyElement(otherPropertyName));

            bool?actual = element.Matches(other);

            actual.Should().Be(expected);
        }
        public void Matches_Any(JsonPathElementType type, bool?expected)
        {
            var element = new JsonPathRecursiveDescentElement(new JsonPathArrayIndexElement(0));
            var other   = ElementCreator.CreateAny(type);

            bool?actual = element.Matches(other);

            actual.Should().Be(expected);
        }