public void TestRelationOrder() { OPCPackage pkg = PackageHelper.Open(POIDataSamples.GetDocumentInstance().OpenResourceAsStream("WordWithAttachments.docx")); OPCParser doc = new OPCParser(pkg); doc.Parse(new TestFactory()); foreach (POIXMLDocumentPart rel in doc.GetRelations()) { //TODO finish me } }
public void TestRelationOrder() { POIDataSamples pds = POIDataSamples.GetDocumentInstance(); OPCPackage pkg = PackageHelper.Open(pds.OpenResourceAsStream("WordWithAttachments.docx")); OPCParser doc = new OPCParser(pkg); try { doc.Parse(new TestFactory()); foreach (POIXMLDocumentPart rel in doc.GetRelations()) { //TODO finish me Assert.IsNotNull(rel); } } finally { doc.Close(); } }
public void TestRelationOrder() { OPCPackage pkg = PackageHelper.Open(POIDataSamples.GetDocumentInstance().OpenResourceAsStream("WordWithAttachments.docx")); OPCParser doc = new OPCParser(pkg); doc.Parse(new TestFactory()); foreach (POIXMLDocumentPart rel in doc.GetRelations()) { //TODO finish me Assert.IsNotNull(rel); } }