Ejemplo n.º 1
0
        public void GetBrightnessTest()
        {
            ExtendedColors ec = ExtendedColors.FromKnownColor(KnownExtendedColors.MareaBaja);
            Color          c  = Color.FromArgb(unchecked ((int)0xFF2E5464));

            Assert.AreEqual(Math.Round(c.GetBrightness(), MidpointRounding.AwayFromZero), Math.Round(ec.GetBrightness(), MidpointRounding.AwayFromZero));
        }