public void TestGetTableProperties() { var localName = "TablesGet.docx"; var remoteName = "TestGetTableProperties.docx"; var fullName = Path.Combine(this.dataFolder, remoteName); this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(this.tableFolder) + localName)); var request = new GetTablePropertiesRequest(remoteName, 1, this.dataFolder); var actual = this.WordsApi.GetTableProperties(request); Assert.AreEqual(200, actual.Code); }
public void TestGetTablePropertiesWithoutNodePath() { string remoteFileName = "TestGetTablePropertiesWithoutNodePath.docx"; this.UploadFileToStorage( remoteDataFolder + "/" + remoteFileName, null, null, File.ReadAllBytes(LocalTestDataFolder + localFile) ); var request = new GetTablePropertiesRequest( name: remoteFileName, index: 1, folder: remoteDataFolder ); var actual = this.WordsApi.GetTableProperties(request); Assert.NotNull(actual.Properties); Assert.AreEqual("Table Grid", actual.Properties.StyleName); }