public void TestGetPropertyPathWithPredicate() { SearchParameter sut = new SearchParameter(); sut.Xpath = "//extension(url=http://foo.com/myextension)/valueReference"; var paths = sut.GetPropertyPath(); Assert.AreEqual(1, paths.Count()); Assert.AreEqual(@"extension(url=http://foo.com/myextension).valueReference", paths[0]); }
public void TestGetPropertyPathWithSinglePath() { SearchParameter sut = new SearchParameter(); sut.Xpath = "//participant/actor"; var paths = sut.GetPropertyPath(); Assert.AreEqual(1, paths.Count()); Assert.IsTrue(paths.Contains("participant.actor")); }
public void TestGetPropertyPathWithPredicate() { var sut = new SearchParameter { Xpath = "//extension(url=http://foo.com/myextension)/valueReference" }; var paths = sut.GetPropertyPath(); Assert.Single(paths); Assert.Equal(@"extension(url=http://foo.com/myextension).valueReference", paths[0]); }
public void TestGetPropertyPathWithSinglePath() { var sut = new SearchParameter { Xpath = "//participant/actor" }; var paths = sut.GetPropertyPath(); Assert.Single(paths); Assert.Contains("participant.actor", paths); }
public void TestGetPropertyPathWithMultiplePath() { SearchParameter sut = new SearchParameter(); sut.Xpath = "//participant/reference | //object/reference"; var paths = sut.GetPropertyPath(); Assert.AreEqual(2, paths.Count()); Assert.IsTrue(paths.Contains("participant.reference")); Assert.IsTrue(paths.Contains("object.reference")); }
public void TestGetPropertyPathWithMultiplePath() { var sut = new SearchParameter { Xpath = "//participant/reference | //object/reference" }; var paths = sut.GetPropertyPath(); Assert.Equal(2, paths.Length); Assert.Contains("participant.reference", paths); Assert.Contains("object.reference", paths); }