public void TestDeleteMathObject()
        {
            var localName  = "MathObjects.docx";
            var remoteName = "TestDeleteMathObject.docx";
            var fullName   = Path.Combine(this.dataFolder, remoteName);
            var index      = 0;

            this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(this.mathObjectFolder) + localName));

            var request = new DeleteOfficeMathObjectRequest(remoteName, index, this.dataFolder);
            var actual  = this.WordsApi.DeleteOfficeMathObject(request);

            Assert.AreEqual(200, actual.Code);
        }
Exemplo n.º 2
0
        public void TestDeleteOfficeMathObjectWithoutNodePath()
        {
            string remoteFileName = "TestDeleteOfficeMathObjectWithoutNodePath.docx";

            this.UploadFileToStorage(
                remoteDataFolder + "/" + remoteFileName,
                null,
                null,
                File.ReadAllBytes(LocalTestDataFolder + localFile)
                );

            var request = new DeleteOfficeMathObjectRequest(
                name: remoteFileName,
                index: 0,
                folder: remoteDataFolder
                );

            this.WordsApi.DeleteOfficeMathObject(request);
        }