public void ColorToHex_WithAlpha_ForTranslucentBlack_GetsBlackHexCode() { var black = Color.FromArgb(50, Color.Black); var hex = HexColorConverter.GetHexCode(black, true); Assert.AreEqual("32000000", hex); }
public void ColorToHex_WithoutAlpha_ForBlack_GetsBlackHexCode() { var black = Color.Black; var hex = HexColorConverter.GetHexCode(black, false); Assert.AreEqual("000000", hex); }