Пример #1
0
        public void ContentControl03DeleteElement()
        {
            string originalFilepath = GetTestFilePath(generatedDocumentFilePath);
            string deleteFilePath   = GetTestFilePath(deletedDocumentFilePath);

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

            //Deleting all "sdt" elements
            DeleteElement.DeleteContentControlElements(deleteFilePath, Log);
            int sdtElementNum = VerifyDeletedElement.DeletedElementVerify(deleteFilePath, Log);
        }
        public void ContentControl03DeleteElement()
        {
            this.MyTestInitialize(TestContext.GetCurrentMethod());

            string originalFilepath = this.GetTestFilePath(this.generatedDocumentFilePath);
            string deleteFilePath   = this.GetTestFilePath(this.deletedDocumentFilePath);

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

            //Deleting all "sdt" elements
            DeleteElement.DeleteContentControlElements(deleteFilePath, this.Log);
            int sdtElementNum = VerifyDeletedElement.DeletedElementVerify(deleteFilePath, this.Log);
        }