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