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

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

            var request = new DeleteBordersRequest(remoteName, "tables/1/rows/0/cells/0/", this.dataFolder);
            var actual  = this.WordsApi.DeleteBorders(request);

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

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

            var request = new DeleteBordersRequest(
                name: remoteFileName,
                nodePath: "tables/1/rows/0/cells/0",
                folder: remoteDataFolder
                );
            var actual = this.WordsApi.DeleteBorders(request);
        }