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); }
protected ColorViewModel LoadColor(FillingColor fillingColor) { var image = Utilities.GetColorBrushImage(fillingColor.Color); return new ColorViewModel(fillingColor.Color) {Thumbnail = image}; }
private bool IsBrushExpected(FillingColor brush, string color) { return brush.HexArgbColor == color; }