9 references to None
System.Windows.Forms.Tests (9)
CheckedListBoxTests.cs (1)
406
yield return new object[] { null, new Rectangle(1, 2, 3, 4), 1, DrawItemState.
None
, Color.Red, Color.Blue };
System\Windows\Forms\DrawItemEventArgsTests.cs (8)
13
yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.
None
- 1, SystemColors.HighlightText, SystemColors.Highlight };
14
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.
None
, SystemColors.WindowText, SystemColors.Window };
38
yield return new object[] { null, Rectangle.Empty, -2, DrawItemState.
None
- 1, Color.Empty, Color.Empty };
39
yield return new object[] { SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), -1, DrawItemState.
None
, Color.Red, Color.Blue };
65
Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.
None
));
66
Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.
None
, Color.Red, Color.Blue));
71
yield return new object[] { new Rectangle(1, 2, 3, 4), DrawItemState.
None
};
77
yield return new object[] { new Rectangle(-1, -2, -3, -4), DrawItemState.
None
};