Esempio n. 1
0
        public void TestAdjoinVerticalWithoutAlign()
        {
            PositionsLabMain.AdjoinWithoutAligning();
            _shapeNames = new List <string> {
                UnrotatedRectangle, Oval, RotatedArrow, RotatedRectangle
            };
            PowerPoint.ShapeRange actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames);

            Action <List <PPShape> > positionsAction = (shapes) => PositionsLabMain.AdjoinVertical(shapes);

            ExecutePositionsAction(positionsAction, actualShapes);

            PpOperations.SelectSlide(AdjoinVerticalWithoutAlignNo);
            PowerPoint.ShapeRange expectedShapes = PpOperations.SelectShapes(_shapeNames);

            CheckShapes(expectedShapes, actualShapes);
        }
Esempio n. 2
0
        public void TestAdjoinVerticalWithAlignWithRotatedRef()
        {
            PositionsLabMain.AdjoinWithAligning();
            _shapeNames = new List <string> {
                RotatedRectangle, UnrotatedRectangle, Oval, RotatedArrow
            };
            var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames);

            Action <List <PPShape> > positionsAction = (shapes) => PositionsLabMain.AdjoinVertical(shapes);

            ExecutePositionsAction(positionsAction, actualShapes);

            PpOperations.SelectSlide(AdjoinVerticalWithAlignWithRotatedRef);
            var expectedShapes = PpOperations.SelectShapes(_shapeNames);

            CheckShapes(expectedShapes, actualShapes);
        }