private void TestApplyingColors(IColorsLabController colorsLab) { var actualSlide = PpOperations.SelectSlide(3); var fontColorShape = PpOperations.SelectShape("fontColor")[1]; var lineColorShape = PpOperations.SelectShape("lineColor")[1]; var fillColorShape = PpOperations.SelectShape("fillColor")[1]; PpOperations.SelectShape("selectMe"); var dropletPanel = colorsLab.GetDropletPanel(); // get main color from fontColorShape // then apply main color to font color of target shape ApplyColor(dropletPanel, fontColorShape); ApplyColor(colorsLab.GetFontColorButton(), dropletPanel); // directly apply font color by fontColorShape's fill color ApplyColor(colorsLab.GetLineColorButton(), lineColorShape); // get main color from fillColorShape // then apply main color to fill color of target shape ApplyColor(dropletPanel, fillColorShape); ApplyColor(colorsLab.GetFillCollorButton(), dropletPanel); var expSlide = PpOperations.SelectSlide(4); SlideUtil.IsSameLooking(expSlide, actualSlide); }