Example #1
0
        public void CellsShapesPutWorksheetShapeTest()
        {
            string name            = "Book1.xlsx";
            string sheetName       = "SHEET1";
            string drawingType     = "button";
            int?   upperLeftRow    = 1;
            int?   upperLeftColumn = 1;
            int?   top             = 10;
            int?   left            = 10;
            int?   width           = 100;
            int?   height          = 90;
            string folder          = null;

            new Config().UpdateDataFile(folder, name);
            var response = instance.CellsShapesPutWorksheetShape(name, sheetName, drawingType, upperLeftRow, upperLeftColumn, top, left, width, height, folder);

            Console.WriteLine(response);
        }
Example #2
0
        public void CellsShapesPutWorksheetShapeTest()
        {
            // TODO uncomment below to test the method and replace null with proper value
            string name            = BOOK1;
            string sheetName       = SHEET1;
            string drawingType     = "button";
            int?   upperLeftRow    = 1;
            int?   upperLeftColumn = 1;
            int?   top             = 10;
            int?   left            = 10;
            int?   width           = 100;
            int?   height          = 90;
            string folder          = TEMPFOLDER;

            UpdateDataFile(folder, name);
            var response = instance.CellsShapesPutWorksheetShape(name, sheetName, drawingType, upperLeftRow, upperLeftColumn, top, left, width, height, folder);

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