public void CellsChartsPostWorksheetChartLegendTest() { string name = "myDocument.xlsx"; string sheetName = "SHEET3"; int? chartIndex = 0; Legend legend = new Legend(); legend.Width = 10; string folder = null; new Config().UpdateDataFile(folder, name); var response = instance.CellsChartsPostWorksheetChartLegend(name, sheetName, chartIndex, legend, folder); Console.WriteLine(response); }
public void CellsChartsPostWorksheetChartLegendTest() { // TODO uncomment below to test the method and replace null with proper value string name = MYDOC; string sheetName = SHEET3; int? chartIndex = 0; Legend legend = new Legend(); legend.Width = 10; string folder = TEMPFOLDER; UpdateDataFile(folder, name); var response = instance.CellsChartsPostWorksheetChartLegend(name, sheetName, chartIndex, legend, folder); Assert.IsInstanceOf <LegendResponse>(response, "response is LegendResponse"); Assert.AreEqual(response.Code, 200); }