public void TestGetTableRow() { var localName = "TablesGet.docx"; var remoteName = "TestGetTableRow.docx"; var fullName = Path.Combine(this.dataFolder, remoteName); this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(this.tableFolder) + localName)); var request = new GetTableRowRequest(remoteName, "tables/1", 0, this.dataFolder); var actual = this.WordsApi.GetTableRow(request); Assert.AreEqual(200, actual.Code); }
public void TestGetTableRow() { string remoteFileName = "TestGetTableRow.docx"; this.UploadFileToStorage( remoteDataFolder + "/" + remoteFileName, null, null, File.ReadAllBytes(LocalTestDataFolder + localFile) ); var request = new GetTableRowRequest( name: remoteFileName, tablePath: "tables/1", index: 0, folder: remoteDataFolder ); var actual = this.WordsApi.GetTableRow(request); Assert.NotNull(actual.Row); Assert.NotNull(actual.Row.TableCellList); Assert.AreEqual(2, actual.Row.TableCellList.Count); }