public void WorkBookPr03DeleteElement() { using (var stream = new MemoryStream()) { GeneratedDocument.CreatePackage(stream); var testEntities = new TestEntities(stream); testEntities.DeleteElements(stream, Log); testEntities.VerifyDeleteElements(stream, Log); testEntities.AddElement(stream, Log); testEntities.VerifyAddElements(stream, Log); } }
public void WorkBookPr03DeleteElement() { string originalFilepath = GetTestFilePath(generatedDocumentFile); string deleteFilePath = GetTestFilePath(deletedDocumentFile); string addFilePath = GetTestFilePath(addedDocumentFile); System.IO.File.Copy(originalFilepath, deleteFilePath, true); testEntities.DeleteElements(deleteFilePath, Log); testEntities.VerifyDeleteElements(deleteFilePath, Log); System.IO.File.Copy(deleteFilePath, addFilePath, true); testEntities.AddElement(addFilePath, Log); testEntities.VerifyAddElements(addFilePath, Log); }