public void Matches_KnownPropertyName_ReturnsTrue() { var element = new JsonPathPropertyElement("name"); var other = new JsonPathPropertyElement("name"); bool?actual = element.Matches(other); actual.Should().BeTrue(); }
public void Matches_UnknownPropertyNameList_ReturnsFalse() { var element = new JsonPathPropertyElement("name"); var other = new JsonPathPropertyListElement(new[] { "name", "unknown" }); bool?actual = element.Matches(other); actual.Should().BeFalse(); }
public void Matches_Any_ReturnsFalse(JsonPathElementType type) { var element = new JsonPathPropertyElement("name"); var other = ElementCreator.CreateAny(type); bool?actual = element.Matches(other); actual.Should().BeFalse(); }