public void CellsOleObjectsPutWorksheetOleObjectTest() { // TODO uncomment below to test the method and replace null with proper value string name = "Book1.xlsx"; string sheetName = "SHEET6"; OleObject oleObject = null; int? upperLeftRow = 1; int? upperLeftColumn = 1; int? height = 100; int? width = 80; string oleFile = "OLEDoc.docx"; string imageFile = "word.jpg"; string folder = null; new Config().UpdateDataFile(folder, name); new Config().UpdateDataFile(folder, oleFile); new Config().UpdateDataFile(folder, imageFile); var response = instance.CellsOleObjectsPutWorksheetOleObject(name, sheetName, oleObject, upperLeftRow, upperLeftColumn, height, width, folder + "/" + oleFile, folder + "/" + imageFile, folder); Console.WriteLine(response); }
public void CellsOleObjectsPutWorksheetOleObjectTest() { // TODO uncomment below to test the method and replace null with proper value string name = BOOK1; string sheetName = SHEET6; OleObject oleObject = null; int? upperLeftRow = 1; int? upperLeftColumn = 1; int? height = 100; int? width = 80; string oleFile = "OLEDoc.docx"; string imageFile = "word.jpg"; string folder = TEMPFOLDER; UpdateDataFile(folder, name); UpdateDataFile(folder, oleFile); UpdateDataFile(folder, imageFile); var response = instance.CellsOleObjectsPutWorksheetOleObject(name, sheetName, oleObject, upperLeftRow, upperLeftColumn, height, width, folder + "/" + oleFile, folder + "/" + imageFile, folder); Assert.IsInstanceOf <OleObjectResponse>(response, "response is OleObjectResponse"); Assert.AreEqual(response.Code, 200); }