Example #1
0
        public void ImplicitOperatorColors()
        {
            Color          c  = Color.FromArgb(unchecked ((int)0xFF996244));
            ExtendedColors ec = c;

            Assert.AreEqual(unchecked ((int)0xFF996244), ec.ToArgb());
        }
Example #2
0
        public void ImplicitOperatorExtendedColors()
        {
            Color          c  = Color.FromArgb(unchecked ((int)0xFFA1A187));
            ExtendedColors ec = ExtendedColors.FromArgb(c.ToArgb());

            Assert.AreEqual(unchecked ((int)0xFFA1A187), ec.ToArgb());
        }
Example #3
0
        public void FromArgbCTest()
        {
            ExtendedColors ec = ExtendedColors.FromArgb(255, 46, 84, 100);

            Assert.AreEqual(unchecked ((int)0xFF2E5464), ec.ToArgb());
        }
Example #4
0
        public void FromArgbDTest()
        {
            ExtendedColors ec = ExtendedColors.FromArgb(90, ExtendedColors.MareaBaja);

            Assert.AreEqual(unchecked ((int)0x5A2E5464), ec.ToArgb());
        }
Example #5
0
        public void ToArgbTest()
        {
            ExtendedColors ec = ExtendedColors.FromKnownColor(KnownExtendedColors.MareaBaja);

            Assert.AreEqual(unchecked ((int)0xFF2E5464), ec.ToArgb());
        }