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); }
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); }