public void CellsChartsPutWorksheetAddChartTest() { string name = "myDocument.xlsx"; string sheetName = "SHEET4"; string chartType = "Pie"; int? upperLeftRow = 5; int? upperLeftColumn = 5; int? lowerRightRow = 10; int? lowerRightColumn = 10; string area = "C7:D11"; bool? isVertical = true; string categoryData = null; bool? isAutoGetSerialName = null; string title = null; string folder = null; new Config().UpdateDataFile(folder, name); var response = instance.CellsChartsPutWorksheetAddChart(name, sheetName, chartType, upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn, area, isVertical, categoryData, isAutoGetSerialName, title, folder); Console.WriteLine(response); }
public void CellsChartsPutWorksheetAddChartTest() { // TODO uncomment below to test the method and replace null with proper value string name = MYDOC; string sheetName = SHEET4; string chartType = "Pie"; int? upperLeftRow = 5; int? upperLeftColumn = 5; int? lowerRightRow = 10; int? lowerRightColumn = 10; string area = "C7:D11"; bool? isVertical = true; string categoryData = null; bool? isAutoGetSerialName = null; string title = null; string folder = TEMPFOLDER; UpdateDataFile(folder, name); var response = instance.CellsChartsPutWorksheetAddChart(name, sheetName, chartType, upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn, area, isVertical, categoryData, isAutoGetSerialName, title, folder); Assert.IsInstanceOf <ChartsResponse>(response, "response is ChartsResponse"); Assert.AreEqual(response.Code, 200); }