75 references to new
System.Windows.Forms.Tests (73)
KeyboardTooltipStateMachineTests.cs (1)
112
public void SimulateKeyUp(Keys keys) => base.OnKeyUp(new
KeyEventArgs
(keys));
System\Windows\Forms\ButtonBaseTests.cs (26)
5483
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), false, false };
5484
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), false, false };
5485
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), true, expectedIsHandleCreated };
5528
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), false };
5529
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), false };
5530
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), true };
5574
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), false, 0 };
5575
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), false, 0 };
5576
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), true, 1 };
5632
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), false };
5633
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), false };
5634
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), true };
5705
control.OnKeyDown(new
KeyEventArgs
(key));
5730
control.OnKeyDown(new
KeyEventArgs
(key));
5747
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.None) };
5748
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel) };
5749
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter) };
5750
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space) };
5797
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), 0, expectedIsHandleCreated };
5798
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), 1, expectedIsHandleCreated };
5799
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), 1, expectedIsHandleCreated };
5902
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Cancel), 0, expectedCallCount };
5903
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Enter), 1, expectedCallCount };
5904
yield return new object[] { flatStyle, enabled, new
KeyEventArgs
(Keys.Space), 1, expectedCallCount };
5984
control.OnKeyUp(new
KeyEventArgs
(key));
6009
control.OnKeyUp(new
KeyEventArgs
(key));
System\Windows\Forms\ComboBoxTests.cs (1)
2774
public void OnKeyUp() => base.OnKeyUp(new
KeyEventArgs
(Keys.Left));
System\Windows\Forms\DataGridViewCellTests.cs (2)
6491
cell.OnKeyClick(new
KeyEventArgs
(Keys.Space), 0);
6499
cell.OnKeyClick(new
KeyEventArgs
(Keys.Space), 0);
System\Windows\Forms\KeyEventArgsTests.cs (3)
24
KeyEventArgs e =
new
(keyData);
49
KeyEventArgs e =
new
(Keys.A)
63
KeyEventArgs e =
new
(Keys.A)
System\Windows\Forms\LabelTests.cs (2)
749
KeyEventArgs keyEventArgs = new
KeyEventArgs
(Keys.A);
771
KeyEventArgs keyEventArgs = new
KeyEventArgs
(Keys.A);
System\Windows\Forms\SplitterTests.cs (3)
1820
yield return new object[] { new
KeyEventArgs
(Keys.None) };
1821
yield return new object[] { new
KeyEventArgs
(Keys.Cancel) };
1822
yield return new object[] { new
KeyEventArgs
(Keys.Escape) };
System\Windows\Forms\ToolStripControlHostTests.cs (2)
4065
c.OnKeyDown(new
KeyEventArgs
(Keys.A));
4071
c.OnKeyUp(new
KeyEventArgs
(Keys.A));
System\Windows\Forms\TreeViewTests.cs (21)
5730
yield return new object[] { new
KeyEventArgs
(Keys.None) };
5731
yield return new object[] { new
KeyEventArgs
(Keys.A) };
5732
yield return new object[] { new
KeyEventArgs
(Keys.Space) };
5733
yield return new object[] { new
KeyEventArgs
(Keys.Control | Keys.Space) };
5762
yield return new object[] { false, true, false, new
KeyEventArgs
(Keys.None), 0, 0, false };
5763
yield return new object[] { false, true, false, new
KeyEventArgs
(Keys.A), 0, 0, false };
5764
yield return new object[] { false, true, false, new
KeyEventArgs
(Keys.Space), 1, 1, true };
5765
yield return new object[] { false, true, true, new
KeyEventArgs
(Keys.Space), 1, 0, true };
5766
yield return new object[] { false, true, false, new
KeyEventArgs
(Keys.Control | Keys.Space), 1, 1, true };
5767
yield return new object[] { false, true, true, new
KeyEventArgs
(Keys.Control | Keys.Space), 1, 0, true };
5769
yield return new object[] { true, true, false, new
KeyEventArgs
(Keys.Space), 0, 0, true };
5770
yield return new object[] { true, false, false, new
KeyEventArgs
(Keys.Space), 0, 0, true };
5771
yield return new object[] { false, false, false, new
KeyEventArgs
(Keys.Space), 0, 0, false };
5895
yield return new object[] { true, new
KeyEventArgs
(Keys.None), true };
5896
yield return new object[] { true, new
KeyEventArgs
(Keys.A), true };
5897
yield return new object[] { true, new
KeyEventArgs
(Keys.Space), true };
5898
yield return new object[] { true, new
KeyEventArgs
(Keys.Control | Keys.Space), true };
5900
yield return new object[] { false, new
KeyEventArgs
(Keys.None), false };
5901
yield return new object[] { false, new
KeyEventArgs
(Keys.A), false };
5902
yield return new object[] { false, new
KeyEventArgs
(Keys.Space), true };
5903
yield return new object[] { false, new
KeyEventArgs
(Keys.Control | Keys.Space), true };
System\Windows\Forms\UpDownBaseTests.cs (12)
2357
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.A), 0, 0, 0, false };
2358
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.A), 0, 0, 0, false };
2359
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.Up), 1, 0, 0, true };
2360
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.Up), 0, 0, 0, false };
2361
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.Down), 0, 1, 0, true };
2362
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.Down), 0, 0, 0, false };
2363
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.Left), 0, 0, 0, false };
2364
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.Left), 0, 0, 0, false };
2365
yield return new object[] { true, userEdit, source, new
KeyEventArgs
(Keys.Right), 0, 0, 0, false };
2366
yield return new object[] { false, userEdit, source, new
KeyEventArgs
(Keys.Right), 0, 0, 0, false };
2371
yield return new object[] { interceptArrowKeys, true, source, new
KeyEventArgs
(Keys.Return), 0, 0, 1, false };
2372
yield return new object[] { interceptArrowKeys, false, source, new
KeyEventArgs
(Keys.Return), 0, 0, 0, false };
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
124
new
(Keys.None),
125
new
(Keys.Cancel)