public void TestGetDocumentDrawingObjectOleData() { var localName = "sample_EmbeddedOLE.docx"; var remoteName = "TestGetDocumentDrawingObjectOleData.docx"; var fullName = Path.Combine(this.dataFolder, remoteName); var objectIndex = 0; this.StorageApi.PutCreate(fullName, null, null, File.ReadAllBytes(BaseTestContext.GetDataDir(this.drawingFolder) + localName)); var request = new GetDocumentDrawingObjectOleDataRequest(remoteName, objectIndex, this.dataFolder, nodePath: "sections/0"); var result = this.WordsApi.GetDocumentDrawingObjectOleData(request); Assert.IsTrue(result.Length > 0, "Error occured while getting drawing object"); }
public void TestGetDocumentDrawingObjectOleDataWithoutNodePath() { string remoteFileName = "TestGetDocumentDrawingObjectOleDataWithoutNodePath.docx"; this.UploadFileToStorage( remoteDataFolder + "/" + remoteFileName, null, null, File.ReadAllBytes(LocalTestDataFolder + localDrawingFile) ); var request = new GetDocumentDrawingObjectOleDataRequest( name: remoteFileName, index: 0, folder: remoteDataFolder ); var actual = this.WordsApi.GetDocumentDrawingObjectOleData(request); }