8 references to FromHtml
System.Drawing.Common.Tests (3)
System\Drawing\ColorTranslatorTests.cs (3)
189Assert.Equal(expected, ColorTranslator.FromHtml(htmlColor)); 210Exception exception = AssertExtensions.Throws<ArgumentException, Exception>(() => ColorTranslator.FromHtml(htmlColor)); 231Assert.Throws(exception, () => ColorTranslator.FromHtml(htmlColor));
System.Windows.Forms.Tests (5)
System\Windows\Forms\DateTimePickerTests.cs (5)
189Action act = () => control.CalendarTitleBackColor = ColorTranslator.FromHtml(value); 211Action act = () => control.CalendarForeColor = ColorTranslator.FromHtml(value); 233Action act = () => control.CalendarTitleForeColor = ColorTranslator.FromHtml(value); 255Action act = () => control.CalendarTrailingForeColor = ColorTranslator.FromHtml(value); 277Action act = () => control.CalendarMonthBackground = ColorTranslator.FromHtml(value);