Example #1
0
        public void TestAlignLeftDefault()
        {
            PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.PowerpointDefaults;
            _shapeNames = new List <string> {
                UnrotatedRectangle, Oval, RotatedArrow, RotatedRectangle
            };
            PowerPoint.ShapeRange actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames);
            PositionsLabMain.AlignLeft(actualShapes);

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

            CheckShapes(expectedShapes, actualShapes);
        }
Example #2
0
        public void TestAlignOneLeftDefault()
        {
            PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.PowerpointDefaults;
            _shapeNames = new List <string> {
                RotatedRectangle
            };
            var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames);

            PositionsLabMain.AlignLeft(actualShapes);

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

            CheckShapes(expectedShapes, actualShapes);
        }
Example #3
0
        public void TestAlignLeftDefault()
        {
            PositionsLabMain.AlignReferToPowerpointDefaults();
            _shapeNames = new List <string> {
                UnrotatedRectangle, Oval, RotatedArrow, RotatedRectangle
            };
            var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames);

            PositionsLabMain.AlignLeft(actualShapes);

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

            CheckShapes(expectedShapes, actualShapes);
        }
Example #4
0
        public void TestAlignLeftToSlide()
        {
            PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.Slide;
            _shapeNames = new List <string> {
                UnrotatedRectangle, Oval, RotatedArrow, RotatedRectangle
            };
            var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames);

            Action <PowerPoint.ShapeRange> positionsAction = shapes => PositionsLabMain.AlignLeft(shapes);

            ExecutePositionsAction(positionsAction, actualShapes);

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

            CheckShapes(expectedShapes, actualShapes);
        }