13 references to new
System.Windows.Forms.Tests (13)
CheckedListBoxTests.cs (3)
464
DrawItemEventArgs e =
new
(graphics, null, new Rectangle(1, 2, 3, 4), -1, DrawItemState.Default);
475
DrawItemEventArgs e =
new
(graphics, null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.Default);
488
DrawItemEventArgs e =
new
(graphics, null, new Rectangle(1, 2, 3, 4), 2, DrawItemState.Default);
System\Windows\Forms\ComboBoxTests.cs (4)
730
control.TestRaiseOnDrawItem(new
DrawItemEventArgs
(graphics, control.Font, default, 0, DrawItemState.Default));
747
control.TestRaiseOnDrawItem(new
DrawItemEventArgs
(Graphics.FromImage(bitmap), control.Font, default, 0, DrawItemState.Default));
776
control.TestRaiseOnDrawItem(new
DrawItemEventArgs
(graphics, control.Font, default, 0, DrawItemState.Default));
782
control.TestRaiseOnDrawItem(new
DrawItemEventArgs
(graphics, control.Font, default, 0, DrawItemState.Default));
System\Windows\Forms\DrawItemEventArgsTests.cs (4)
26
DrawItemEventArgs e =
new
(graphics, font, rect, index, state);
65
Assert.Throws<ArgumentNullException>("graphics", () => new
DrawItemEventArgs
(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None));
91
DrawItemEventArgs e =
new
(graphics, SystemFonts.DefaultFont, bounds, -1, state);
101
DrawItemEventArgs e =
new
(graphics, SystemFonts.DefaultFont, bounds, -1, state);
System\Windows\Forms\ListBoxTests.cs (1)
5520
yield return new object[] { new
DrawItemEventArgs
(graphics, null, new Rectangle(1, 2, 3, 4), 0, DrawItemState.Checked) };
System\Windows\Forms\TabControlTests.cs (1)
4222
yield return new object[] { new
DrawItemEventArgs
(graphics, null, new Rectangle(1, 2, 3, 4), 0, DrawItemState.Checked) };