Exemple #1
0
        public void CMYK_get_converted_to_RGB()
        {
            CMYK cmyk = new CMYK()
            {
                Cyan    = 0,
                Black   = 0,
                Magenta = 0.741,
                Yellow  = 0.608
            };

            var result = cmyk.ConvertToRgb();

            Assert.AreEqual(255, result.Red);
            Assert.AreEqual(66, result.Green);
            Assert.AreEqual(100, result.Blue);
        }