public void ImplicitOperatorColors() { Color c = Color.FromArgb(unchecked ((int)0xFF996244)); ExtendedColors ec = c; Assert.AreEqual(unchecked ((int)0xFF996244), ec.ToArgb()); }
public void ImplicitOperatorExtendedColors() { Color c = Color.FromArgb(unchecked ((int)0xFFA1A187)); ExtendedColors ec = ExtendedColors.FromArgb(c.ToArgb()); Assert.AreEqual(unchecked ((int)0xFFA1A187), ec.ToArgb()); }
public void FromArgbCTest() { ExtendedColors ec = ExtendedColors.FromArgb(255, 46, 84, 100); Assert.AreEqual(unchecked ((int)0xFF2E5464), ec.ToArgb()); }
public void FromArgbDTest() { ExtendedColors ec = ExtendedColors.FromArgb(90, ExtendedColors.MareaBaja); Assert.AreEqual(unchecked ((int)0x5A2E5464), ec.ToArgb()); }
public void ToArgbTest() { ExtendedColors ec = ExtendedColors.FromKnownColor(KnownExtendedColors.MareaBaja); Assert.AreEqual(unchecked ((int)0xFF2E5464), ec.ToArgb()); }