public void IdsOf_Element_Returns_Ids() { PerfionXml xml = Parse(Examples.Example1); PerfionXml.Component product = xml.Components("Product").FirstOrDefault(x => x.Id == 171458); Assert.IsNotNull(product); int[] ids = product.IdsOf("ExternalItemtext"); CollectionAssert.AreEqual(new[] { 308928, 310279, 308742 }, ids); }