public void ThreadingInfo03DeleteAddElement()
        {
            using (var stream = new MemoryStream())
            {
                GeneratedDocument.CreatePackage(stream);

                var testEntities = new TestEntities(stream);
                testEntities.DeleteElements(stream, Log);
                testEntities.VerifyDeleteElements(stream, Log);

                testEntities.AddElements(stream, Log);
                testEntities.VerifyAddElements(stream, Log);
            }
        }
示例#2
0
        public void ThreadingInfo03DeleteAddElement()
        {
            string originalFilepath = GetTestFilePath(generateDocumentFile);
            string deleteFilePath   = GetTestFilePath(deleteDocumentFile);
            string addFilePath      = GetTestFilePath(addDocumentFile);

            System.IO.File.Copy(originalFilepath, deleteFilePath, true);

            testEntities.DeleteElements(deleteFilePath, Log);
            testEntities.VerifyDeleteElements(deleteFilePath, Log);

            System.IO.File.Copy(deleteFilePath, addFilePath, true);

            testEntities.AddElements(addFilePath, Log);
            testEntities.VerifyAddElements(addFilePath, Log);
        }