Exemple #1
0
        public void CorrectlySetArgbAltColor(Color color)
        {
            var target = Target;

            target.ArgbColorAlt = color;

            ColorBoardAssert.Color(target, color);
        }
Exemple #2
0
        public void CorrectlySetColorByName(Color color)
        {
            var target = Target;

            target.ColorName = color.ToString();

            ColorBoardAssert.Color(target, color);
        }
Exemple #3
0
        public void CorrectlySetHsvColor(Color color)
        {
            var target = Target;

            target.HsvColor = color;

            ColorBoardAssert.Color(target, color);
        }
Exemple #4
0
        public void CorrectlySetThemeColor(Color color)
        {
            var target = Target;

            target.SelectedThemeColor = color;

            ColorBoardAssert.Color(target, color);
        }
Exemple #5
0
        public void CorrectlySetPredefinedColor(string predefinedColorName, Color expectedColor)
        {
            var target = Target;

            target.PredefinedColorName = predefinedColorName;

            ColorBoardAssert.Color(target, expectedColor);
        }
Exemple #6
0
        public void VerifyInitialColorState()
        {
            var target  = Target;
            var current = target.Current;

            var margin      = current.Margin;
            var desiredSize = current.DesiredSize;

            ColorBoardAssert.Color(target, target.Current.Color);
        }
Exemple #7
0
        public void CorrectlySetRecentColor(List <Color> recentColorList, Color recentColor)
        {
            var target = Target;
            var model  = target.Current;

            //Init recent color list
            foreach (var color in recentColorList)
            {
                model.Color = color;

                Wait.UntilResponsive();

                target.Apply();

                Wait.UntilResponsive();
            }

            target.SelectedRecentColor = recentColor;

            ColorBoardAssert.Color(target, recentColor);
        }