public async Task ReadArcPau(string inArc, string parName, string componentName) { using (ArcFile arcFile = new ArcFile(inArc)) { using (EntryStack entryStack = await arcFile.GetEntryRecursive(parName)) { using UIComponent component = await UIComponent.CreateUIComponent(await entryStack.Entry.GetData()); using UISubcomponent uIComponent = component[0]; } } }
public async Task WritePau(string inArc, string parName, string outputName) { using (ArcFile arcFile = new ArcFile(inArc)) { using (EntryStack entryStack = await arcFile.GetEntryRecursive(parName)) { using UIComponent component = await UIComponent.CreateUIComponent(await entryStack.Entry.GetData()); using UISubcomponent uIComponent = component[0]; using (FileStream outStream = new FileStream("temp.pau", FileMode.Create, FileAccess.Write)) { uIComponent.WritePauStream(outStream); } Assert.IsTrue(Compare.CompareFiles("temp.pau", outputName)); } } }