public void CreateFromSingleSegmentXPath() { var bodyXPath = $"/*[local-name()='Envelope' and namespace-uri()='{NS}:1']"; XPathCollectionFactory.Create(bodyXPath) .Should().BeEquivalentTo( new XPathCollection { bodyXPath }); }
public void CreateFromMultiSegmentXPath() { var segments = new[] { $"/*[local-name()='LevelOne' and namespace-uri()='{NS}:1']", $"/*[local-name()='LevelTwo' and namespace-uri()='{NS}:2']", $"/*[local-name()='Parts' and namespace-uri()='{NS}:3']" }; var bodyXPath = segments[0] + segments[1] + segments[2]; XPathCollectionFactory.Create(bodyXPath) .Should().BeEquivalentTo( new XPathCollection { segments[0], segments[0] + segments[1], segments[0] + segments[1] + segments[2] }); }