public void CellsWorkbookPostImportDataTest() { string name = "Book1.xlsx"; ImportIntArrayOption data = new ImportIntArrayOption(); data.DestinationWorksheet = SHEET1; data.FirstColumn = 1; data.FirstRow = 3; data.ImportDataType = "IntArray"; data.IsVertical = true; data.Data = new List <int?> { 1, 2, 3, 4 }; string folder = null; new Config().UpdateDataFile(null, "Book1.xlsx"); var response = instance.CellsWorkbookPostImportData(name, data, folder); Console.WriteLine(response); }
public void CellsWorkbookPostImportDataTest() { // TODO uncomment below to test the method and replace null with proper value string name = BOOK1; ImportIntArrayOption data = new ImportIntArrayOption(); data.DestinationWorksheet = SHEET1; data.FirstColumn = 1; data.FirstRow = 3; data.ImportDataType = "IntArray"; data.IsVertical = true; data.Data = new List <int?> { 1, 2, 3, 4 }; string folder = TEMPFOLDER; UpdateDataFile(instance, TEMPFOLDER, BOOK1); var response = instance.CellsWorkbookPostImportData(name, data, folder); Assert.IsInstanceOf <CellsCloudResponse>(response, "response is CellsCloudResponse"); Assert.AreEqual(response.Code, 200); }