public void TestAlignBottomDefault() { PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.PowerpointDefaults; _shapeNames = new List <string> { UnrotatedRectangle, Oval, RotatedArrow, RotatedRectangle }; var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames); var slideHeight = Pres.PageSetup.SlideHeight; PositionsLabMain.AlignBottom(actualShapes, slideHeight); PpOperations.SelectSlide(AlignShapesBottomDefaultNo); var expectedShapes = PpOperations.SelectShapes(_shapeNames); CheckShapes(expectedShapes, actualShapes); }
public void TestAlignOneBottomDefault() { PositionsLabMain.AlignReferToPowerpointDefaults(); _shapeNames = new List <string> { RotatedRectangle }; var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames); var slideHeight = Pres.PageSetup.SlideHeight; PositionsLabMain.AlignBottom(actualShapes, slideHeight); PpOperations.SelectSlide(AlignOneShapeBottomDefaultNo); var expectedShapes = PpOperations.SelectShapes(_shapeNames); CheckShapes(expectedShapes, actualShapes); }
public void TestAlignOneBottomDefault() { PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.PowerpointDefaults; _shapeNames = new List <string> { RotatedRectangle }; PowerPoint.ShapeRange actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames); float slideHeight = Pres.PageSetup.SlideHeight; PositionsLabMain.AlignBottom(actualShapes, slideHeight); PpOperations.SelectSlide(AlignOneShapeBottomDefaultNo); PowerPoint.ShapeRange expectedShapes = PpOperations.SelectShapes(_shapeNames); CheckShapes(expectedShapes, actualShapes); }
public void TestAlignBottomToRefShape() { PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.SelectedShape; _shapeNames = new List <string> { RotatedRectangle, UnrotatedRectangle, Oval, RotatedArrow }; var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames); var slideHeight = Pres.PageSetup.SlideHeight; Action <PowerPoint.ShapeRange, float> positionsAction = (shapes, height) => PositionsLabMain.AlignBottom(shapes, height); ExecutePositionsAction(positionsAction, actualShapes, slideHeight); PpOperations.SelectSlide(AlignShapesBottomToRefShapeNo); var expectedShapes = PpOperations.SelectShapes(_shapeNames); CheckShapes(expectedShapes, actualShapes); }