Esempio n. 1
0
        public void CellsWorksheetsPostAutofitWorksheetRowsTest()
        {
            string            name              = "Book1.xlsx";
            string            sheetName         = "SHEET1";
            AutoFitterOptions autoFitterOptions = new AutoFitterOptions();

            autoFitterOptions.AutoFitMergedCells = true;
            int?   startRow = 1;
            int?   endRow   = 10;
            bool?  onlyAuto = true;
            string folder   = null;

            new Config().UpdateDataFile(folder, name);
            var response = instance.CellsWorksheetsPostAutofitWorksheetRows(name, sheetName, autoFitterOptions, startRow, endRow, onlyAuto, folder);

            Console.WriteLine(response);
        }
        public void CellsWorksheetsPostAutofitWorksheetRowsTest()
        {
            // TODO uncomment below to test the method and replace null with proper value
            string            name              = BOOK1;
            string            sheetName         = SHEET1;
            AutoFitterOptions autoFitterOptions = new AutoFitterOptions();

            autoFitterOptions.AutoFitMergedCells = true;
            int?   startRow = 1;
            int?   endRow   = 10;
            bool?  onlyAuto = true;
            string folder   = TEMPFOLDER;

            UpdateDataFile(folder, name);
            var response = instance.CellsWorksheetsPostAutofitWorksheetRows(name, sheetName, autoFitterOptions, startRow, endRow, onlyAuto, folder);

            Assert.IsInstanceOf <SaaSposeResponse>(response, "response is SaaSposeResponse");
            Assert.AreEqual(response.Code, 200);
        }