示例#1
0
        public void GetColor_Always_ReturnExpectedValue(string color, byte a, byte r, byte g, byte b)
        {
            var expectedColor = Color.FromArgb(a, r, g, b);
            var brush = new FillingColor {HexArgbColor = color};

            var result = brush.Color;

            Assert.AreEqual(expectedColor, result);
        }
示例#2
0
 protected ColorViewModel LoadColor(FillingColor fillingColor)
 {
     var image = Utilities.GetColorBrushImage(fillingColor.Color);
     return new ColorViewModel(fillingColor.Color) {Thumbnail = image};
 }
示例#3
0
 private bool IsBrushExpected(FillingColor brush, string color)
 {
     return brush.HexArgbColor == color;
 }