public void CellsRangesPostWorksheetCellsRangeMoveToTest() { string name = "Book1.xlsx"; string sheetName = "SHEET1"; int? destRow = 1; int? destColumn = 1; Range range = new Range(); //10,10.1,1,1,null,null,2,16.8 range.ColumnCount = 1; range.ColumnWidth = 10.1; range.FirstColumn = 1; range.FirstRow = 1; range.RowCount = 10; string folder = null; new Config().UpdateDataFile(folder, name); var response = instance.CellsRangesPostWorksheetCellsRangeMoveTo(name, sheetName, destRow, destColumn, range, folder); Console.WriteLine(response); }
public void CellsRangesPostWorksheetCellsRangeMoveToTest() { // TODO uncomment below to test the method and replace null with proper value string name = BOOK1; string sheetName = SHEET1; int? destRow = 1; int? destColumn = 1; Range range = new Range(); //10,10.1,1,1,null,null,2,16.8 range.ColumnCount = 1; range.ColumnWidth = 10.1; range.FirstColumn = 1; range.FirstRow = 1; range.RowCount = 10; string folder = TEMPFOLDER; UpdateDataFile(folder, name); var response = instance.CellsRangesPostWorksheetCellsRangeMoveTo(name, sheetName, destRow, destColumn, range, folder); Assert.IsInstanceOf <SaaSposeResponse>(response, "response is SaaSposeResponse"); Assert.AreEqual(response.Code, 200); }