public void CellsWorksheetsPostCopyWorksheetTest() { string name = "NewCopy.xlsx"; string sheetName = "SHEET5"; string sourceSheet = "SHEET6"; CopyOptions options = new CopyOptions(); options.ColumnCharacterWidth = true; string sourceWorkbook = "Book1.xlsx"; string sourceFolder = null; string folder = null; new Config().UpdateDataFile(folder, name); new Config().UpdateDataFile(folder, sourceWorkbook); var response = instance.CellsWorksheetsPostCopyWorksheet(name, sheetName, sourceSheet, options, sourceWorkbook, sourceFolder, folder); Console.WriteLine(response); }
public void CellsWorksheetsPostCopyWorksheetTest() { // TODO uncomment below to test the method and replace null with proper value string name = "NewCopy.xlsx"; string sheetName = SHEET5; string sourceSheet = SHEET6; CopyOptions options = new CopyOptions(); options.ColumnCharacterWidth = true; string sourceWorkbook = BOOK1; string sourceFolder = TEMPFOLDER; string folder = TEMPFOLDER; UpdateDataFile(folder, name); UpdateDataFile(folder, sourceWorkbook); var response = instance.CellsWorksheetsPostCopyWorksheet(name, sheetName, sourceSheet, options, sourceWorkbook, sourceFolder, folder); Assert.IsInstanceOf <SaaSposeResponse>(response, "response is SaaSposeResponse"); Assert.AreEqual(response.Code, 200); }