public void TestDeleteCell()
        {
            var localName  = "TablesGet.docx";
            var remoteName = "TestDeleteCell.docx";
            var fullName   = Path.Combine(this.dataFolder, remoteName);

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

            var request = new DeleteTableCellRequest(remoteName, "sections/0/tables/2/rows/0", 0, this.dataFolder);
            var actual  = this.WordsApi.DeleteTableCell(request);

            Assert.AreEqual(200, actual.Code);
        }
예제 #2
0
        public void TestDeleteTableCell()
        {
            string remoteFileName = "TestDeleteTableCell.docx";

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

            var request = new DeleteTableCellRequest(
                name: remoteFileName,
                tableRowPath: "sections/0/tables/2/rows/0",
                index: 0,
                folder: remoteDataFolder
                );

            this.WordsApi.DeleteTableCell(request);
        }