public void TestFitToFillWithoutAspectRatio() { Microsoft.Office.Interop.PowerPoint.ShapeRange actualShapes = GetShapes(SlideNo.FitToSlideOrigin, _shapeNames); Microsoft.Office.Interop.PowerPoint.ShapeRange expectedShapes = GetShapes(SlideNo.FitToSlideFill, _shapeNames); float slideWidth = Pres.PageSetup.SlideWidth; float slideHeight = Pres.PageSetup.SlideHeight; _resizeLab.FitToFill(actualShapes, slideWidth, slideHeight, false); CheckShapes(expectedShapes, actualShapes); }
public void TestFitToFillWithoutAspectRatio() { var actualShapes = GetShapes(SlideNo.FitToSlideOrigin, _shapeNames); var expectedShapes = GetShapes(SlideNo.FitToSlideFill, _shapeNames); var slideWidth = Pres.PageSetup.SlideWidth; var slideHeight = Pres.PageSetup.SlideHeight; _resizeLab.FitToFill(actualShapes, slideWidth, slideHeight, false); CheckShapes(expectedShapes, actualShapes); }