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

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

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

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

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

            var request = new GetTableRowFormatRequest(
                name: remoteFileName,
                tablePath: "sections/0/tables/2",
                index: 0,
                folder: remoteDataFolder
                );
            var actual = this.WordsApi.GetTableRowFormat(request);

            Assert.NotNull(actual.RowFormat);
            Assert.AreEqual(true, actual.RowFormat.AllowBreakAcrossPages);
        }