Exemplo n.º 1
0
        public void CellsSaveAsPostDocumentSaveAsTest()
        {
            string      name             = "Book1.xlsx";
            SaveOptions saveOptions      = null;
            string      newfilename      = "newbook.xlsx";
            bool?       isAutoFitRows    = true;
            bool?       isAutoFitColumns = true;
            string      folder           = null;

            new Config().UpdateDataFile(folder, name);
            var response = instance.CellsSaveAsPostDocumentSaveAs(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder);

            Console.WriteLine(response);
        }
Exemplo n.º 2
0
        public void CellsSaveAsPostDocumentSaveAsTest()
        {
            // TODO uncomment below to test the method and replace null with proper value
            string      name             = BOOK1;
            SaveOptions saveOptions      = null;
            string      newfilename      = "newbook.xlsx";
            bool?       isAutoFitRows    = true;
            bool?       isAutoFitColumns = true;
            string      folder           = TEMPFOLDER;

            UpdateDataFile(folder, name);
            var response = instance.CellsSaveAsPostDocumentSaveAs(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder);

            Assert.IsInstanceOf <SaveResponse>(response, "response is SaveResponse");
        }