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 IsKnownColorTest() { ExtendedColors ec = ExtendedColors.FromName("MareaBaja"); Assert.AreEqual(true, ec.IsKnownColor); ExtendedColors ec2 = ExtendedColors.FromArgb(unchecked ((int)0xFF795482)); Assert.AreEqual(false, ec2.IsKnownColor); }
public void IsNamedColorTest() { ExtendedColors ec = ExtendedColors.FromName("VodoYellow"); Assert.AreEqual(true, ec.IsNamedColor); ExtendedColors ec2 = ExtendedColors.FromArgb(unchecked ((int)0xFF795482)); Assert.AreEqual(false, ec2.IsNamedColor); }
public void IsEmptyTest() { ExtendedColors ec = new ExtendedColors(); Assert.AreEqual(true, ec.IsEmpty); ExtendedColors ec2 = ExtendedColors.FromArgb(unchecked ((int)0xFF795484)); Assert.AreEqual(false, ec2.IsEmpty); }
public void FromArgbDTest() { ExtendedColors ec = ExtendedColors.FromArgb(90, ExtendedColors.MareaBaja); Assert.AreEqual(unchecked ((int)0x5A2E5464), ec.ToArgb()); }
public void FromArgbCTest() { ExtendedColors ec = ExtendedColors.FromArgb(255, 46, 84, 100); Assert.AreEqual(unchecked ((int)0xFF2E5464), ec.ToArgb()); }