public void As_RecursiveDescentAppliedToPropertyToArrayIndex_ReturnsNull()
        {
            JsonPathElement element = new JsonPathRecursiveDescentElement(ElementCreator.CreateAny(JsonPathElementType.Property));

            var actual = element.As <JsonPathArrayIndexElement>();

            actual.Should().BeNull();
        }
        public void As_RecursiveDescentAppliedToPropertyToProperty_Casts()
        {
            var             property = ElementCreator.CreateAny(JsonPathElementType.Property);
            JsonPathElement element  = new JsonPathRecursiveDescentElement(property);

            var actual = element.As <JsonPathPropertyElement>();

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