예제 #1
0
        public void CellsPivotTablesPostPivotTableCellStyleTest()
        {
            string name            = "TestCase.xlsx";
            string sheetName       = "SHEET4";
            int?   pivotTableIndex = 0;
            int?   column          = 1;
            int?   row             = 1;
            Style  style           = new Style();

            style.Font      = new Font();
            style.Font.Size = 17;
            bool?  needReCalculate = true;
            string folder          = "TEMPFOLDER";

            new Config().UpdateDataFile(folder, name);
            var response = instance.CellsPivotTablesPostPivotTableCellStyle(name, sheetName, pivotTableIndex, column, row, style, needReCalculate, folder);

            Console.WriteLine(response);
        }
예제 #2
0
        public void CellsPivotTablesPostPivotTableCellStyleTest()
        {
            // TODO uncomment below to test the method and replace null with proper value
            string name            = PivTestFile;
            string sheetName       = SHEET4;
            int?   pivotTableIndex = 0;
            int?   column          = 1;
            int?   row             = 1;
            Style  style           = new Style();

            style.Font      = new Font();
            style.Font.Size = 17;
            bool?  needReCalculate = true;
            string folder          = TEMPFOLDER;

            UpdateDataFile(folder, name);
            var response = instance.CellsPivotTablesPostPivotTableCellStyle(name, sheetName, pivotTableIndex, column, row, style, needReCalculate, folder);

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