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 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")); }