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

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

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

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

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

            var request = new GetTableCellFormatRequest(
                name: remoteFileName,
                tableRowPath: "sections/0/tables/2/rows/0",
                index: 0,
                folder: remoteDataFolder
                );
            var actual = this.WordsApi.GetTableCellFormat(request);

            Assert.NotNull(actual.CellFormat);
            Assert.AreEqual(true, actual.CellFormat.WrapText);
        }