Beispiel #1
0
        public void CellsWorksheetsPostUpdateWorksheetPropertyTest()
        {
            string    name      = "Book1.xlsx";
            string    sheetName = "SHEET1";
            Worksheet sheet     = new Worksheet();

            sheet.Index = 0;
            sheet.IsGridlinesVisible = true;
            string folder = null;

            new Config().UpdateDataFile(folder, name);
            var response = instance.CellsWorksheetsPostUpdateWorksheetProperty(name, sheetName, sheet, folder);

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

            sheet.Index = 0;
            sheet.IsGridlinesVisible = true;
            string folder = TEMPFOLDER;

            UpdateDataFile(folder, name);
            var response = instance.CellsWorksheetsPostUpdateWorksheetProperty(name, sheetName, sheet, folder);

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