using System; using System.Drawing; using System.Security.Permissions; using NUnit.Framework; namespace MonoTests.System.Drawing { [TestFixture] [SecurityPermission (SecurityAction.Deny, UnmanagedCode = true)] public class ColorTranslatorFixture { [Test] public void FromHtml () { Color [] colors = new Color [] { Color.Aqua, Color.Black, Color.Blue, Color.Fuchsia, Color.Gray, Color.Green, Color.Lime, Color.Maroon, Color.Navy, Color.Olive, Color.Purple, Color.Red, Color.Silver, Color.Teal, Color.White, Color.Yellow, SystemColors.ActiveBorder, SystemColors.ActiveCaption, SystemColors.Control, //SystemColors.ControlLightLight, SystemColors.ActiveCaptionText, SystemColors.GrayText, //SystemColors.InactiveBorder, SystemColors.InactiveCaption, SystemColors.InfoText, SystemColors.Menu, SystemColors.ControlDarkDark, //SystemColors.ControlText, SystemColors.ControlDark, SystemColors.Window, SystemColors.AppWorkspace, SystemColors.Desktop, //SystemColors.ControlDark, SystemColors.ControlText, SystemColors.Highlight, SystemColors.HighlightText, //SystemColors.InactiveCaptionText, SystemColors.Info, SystemColors.MenuText, SystemColors.ScrollBar, //SystemColors.ControlLight, SystemColors.ControlLightLight }; string [] htmlColors = new string [] { "Aqua", "Black", "Blue", "Fuchsia", "Gray", "Green", "Lime", "Maroon", "Navy", "Olive", "Purple", "Red", "Silver", "Teal", "White", "Yellow", "activeborder", "activecaption", "buttonface", //"buhighlight", "captiontext", "graytext", //"iborder", "Icaption", "infotext", "menu", "threeddarkshadow", //"thrface", "Threedshadow", "window", "appworkspace", "background", //"bshadow", "buttontext", "highlight", "highlighttext", //"icaptiontext", "infobackground", "menutext", "scrollbar", //"thhighlight", "thlightshadow" }; for (int i=0; i