private void TestMonochromeMatchingColors(IColorsLabController colorsLab) { Slide actualSlide = PpOperations.SelectSlide(OriginalSlideNo); // Apply monochromeRectOne as Line colorsLab.ClickMonochromeRect(1); Point startPt = colorsLab.GetApplyLineButtonLocation(); Point endPt = colorsLab.GetMainColorRectangleLocation(); PpOperations.SelectShape(TargetShape); DragAndDrop(startPt, endPt); // Apply monochromeRectTwo as Text colorsLab.ClickMonochromeRect(2); startPt = colorsLab.GetApplyTextButtonLocation(); endPt = colorsLab.GetMainColorRectangleLocation(); PpOperations.SelectShape(TargetShape); DragAndDrop(startPt, endPt); // Apply monochromeRectSix as Fill colorsLab.ClickMonochromeRect(6); startPt = colorsLab.GetApplyFillButtonLocation(); endPt = colorsLab.GetMainColorRectangleLocation(); PpOperations.SelectShape(TargetShape); DragAndDrop(startPt, endPt); Slide expSlide = PpOperations.SelectSlide(MonochromeColorChangeSlideNo); SlideUtil.IsSameLooking(expSlide, actualSlide); }
private void TestTriadicAndTetradicColors(IColorsLabController colorsLab) { Slide actualSlide = PpOperations.SelectSlide(OriginalSlideNo); // Eyedrop the outline color shape Shape shape = PpOperations.SelectShape(LineColorShape)[1]; Point startPt = colorsLab.GetEyeDropperButtonLocation(); Point endPt = GetShapeCenterPoint(shape); DragAndDrop(startPt, endPt); // Apply triadicRectThree as Fill colorsLab.ClickTriadicRect(3); startPt = colorsLab.GetApplyFillButtonLocation(); endPt = colorsLab.GetMainColorRectangleLocation(); PpOperations.SelectShape(TargetShape); DragAndDrop(startPt, endPt); // Apply tetradicRectThree as Line colorsLab.ClickTetradicRect(3); startPt = colorsLab.GetApplyLineButtonLocation(); endPt = colorsLab.GetMainColorRectangleLocation(); PpOperations.SelectShape(TargetShape); DragAndDrop(startPt, endPt); Slide expSlide = PpOperations.SelectSlide(TriadicAndTetradicChangeSlideNo); SlideUtil.IsSameLooking(expSlide, actualSlide); }
private void TestApplyFillColor(IColorsLabController colorsLab) { Slide actualSlide = PpOperations.SelectSlide(OriginalSlideNo); Shape shape = PpOperations.SelectShape(FillColorShape)[1]; Point startPt = colorsLab.GetApplyFillButtonLocation(); Point endPt = GetShapeCenterPoint(shape); PpOperations.SelectShape(TargetShape); DragAndDrop(startPt, endPt); Slide expSlide = PpOperations.SelectSlide(FillColorChangeSlideNo); SlideUtil.IsSameLooking(expSlide, actualSlide); }