コード例 #1
0
        public void CellsAutoFilterPutWorksheetIconFilterExample()
        {
            string name        = "Book1.xlsx";
            string sheetName   = "SHEET1";
            string range       = "a1:a10";
            int?   fieldIndex  = 0;
            string iconSetType = "None";
            int?   iconId      = 0;
            bool?  matchBlanks = null;
            bool?  refresh     = null;
            string folder      = null;

            new Config().UpdateDataFile(null, "Book1.xlsx");
            var response = instance.CellsAutoFilterPutWorksheetIconFilter(name, sheetName, range, fieldIndex, iconSetType, iconId, matchBlanks, refresh, folder);

            Console.WriteLine(response);
        }
コード例 #2
0
        public void CellsAutoFilterPutWorksheetIconFilterTest()
        {
            // TODO uncomment below to test the method and replace null with proper value
            string name        = BOOK1;
            string sheetName   = SHEET1;
            string range       = RANGE;
            int?   fieldIndex  = 0;
            string iconSetType = "None";
            int?   iconId      = 0;
            bool?  matchBlanks = null;
            bool?  refresh     = null;
            string folder      = TEMPFOLDER;

            UpdateDataFile(TEMPFOLDER, BOOK1);
            var response = instance.CellsAutoFilterPutWorksheetIconFilter(name, sheetName, range, fieldIndex, iconSetType, iconId, matchBlanks, refresh, folder);

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