Exemplo n.º 1
0
        public virtual void GetRGBColorByUnsupportedNameTest()
        {
            String    colorName = "tangerine";
            DeviceRgb cmpRgb    = new DeviceRgb(0, 0, 0);
            DeviceRgb resultRgb = WebColors.GetRGBColor(colorName);

            NUnit.Framework.Assert.AreEqual(cmpRgb, resultRgb);
        }
Exemplo n.º 2
0
        public virtual void GetRGBColorBySupportedNameTest()
        {
            String    colorName = "violet";
            DeviceRgb cmpRgb    = new DeviceRgb(0xee, 0x82, 0xee);
            DeviceRgb resultRgb = WebColors.GetRGBColor(colorName);

            NUnit.Framework.Assert.AreEqual(cmpRgb, resultRgb);
        }