public void Matches_KnownPropertyName_ReturnsTrue()
        {
            var element = new JsonPathPropertyListElement(new[] { "name0", "name1", "name2" });
            var other   = new JsonPathPropertyElement("name0");

            bool?actual = element.Matches(other);

            actual.Should().BeTrue();
        }
        public void Matches_UnknownPropertyNamesList_ReturnsFalse()
        {
            var element = new JsonPathPropertyListElement(new[] { "name0", "name1", "name2" });
            var other   = new JsonPathPropertyListElement(new[] { "name0", "name1", "name2", "name3" });

            bool?actual = element.Matches(other);

            actual.Should().BeFalse();
        }
        public void Matches_Any_ReturnsFalse(JsonPathElementType type)
        {
            var element = new JsonPathPropertyListElement(new[] { "name0", "name1" });
            var other   = ElementCreator.CreateAny(type);

            bool?actual = element.Matches(other);

            actual.Should().BeFalse();
        }