public void MembersHandlesEmptyMembersList() { XDocument x = XDocument.Load("TestData/currentxml/AVAssetImageGeneratorCompletionHandler.xml"); IEnumerable <XElement> elements = EcmaXmlHelper.Members(x); Assert.IsEmpty(elements); }
public void MembersReturnsMembers() { XDocument xmlOld = XDocument.Load("TestData/oldxml/t1.xml"); IEnumerable <XElement> members = EcmaXmlHelper.Members(xmlOld); Assert.AreEqual(13, members.Count()); members = EcmaXmlHelper.Members(XDocument.Load("TestData/currentxml/t1.xml")); Assert.AreEqual(15, members.Count()); }