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

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

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

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

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

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

            Assert.NotNull(actual.Cell);
            Assert.AreEqual("0.0.5.0.0", actual.Cell.NodeId);
        }