public void Matches_ArraySlice(int?start, int?end, int step, int?otherStart, int?otherEnd, int otherStep, bool?expected)
        {
            var element = new JsonPathArraySliceElement(start, end, step);
            var other   = new JsonPathArraySliceElement(otherStart, otherEnd, otherStep);

            bool?actual = element.Matches(other);

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

            bool?actual = element.Matches(other);

            actual.Should().Be(expected);
        }
        public void Matches_ArrayIndexList(int?start, int?end, int step, int index, bool?expected)
        {
            var element = new JsonPathArraySliceElement(start, end, step);
            var other   = new JsonPathArrayIndexListElement(new [] { index });

            bool?actual = element.Matches(other);

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