46 references to ReflectionHelper
System.Windows.Forms.Tests (46)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (18)
1236
return
ReflectionHelper
.GetPublicNotAbstractClasses<Control>().Select(type => new object[] { type });
1243
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1262
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1284
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1302
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1321
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1349
foreach (Type type in
ReflectionHelper
.GetPublicNotAbstractClasses<Control>())
1363
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1411
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1427
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1458
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1474
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1494
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1528
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1566
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1637
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1661
using var control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1705
using var control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (2)
13
return
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripControlHost>().Select(type => new object[] { type });
22
using ToolStripControlHost item =
ReflectionHelper
.InvokePublicConstructor<ToolStripControlHost>(type);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (17)
12
IEnumerable<Type> types =
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type);
33
using ToolStripDropDownItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(itemType);
79
IEnumerable<Type> types =
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type);
108
using ToolStripDropDownItem ownerItem =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(ownerType);
109
using ToolStripDropDownItem parentItem1 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(parentType);
110
using ToolStripDropDownItem parentItem2 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(parentType);
111
using ToolStripDropDownItem childItem1 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
112
using ToolStripDropDownItem childItem2 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
113
using ToolStripDropDownItem childItem3 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
114
using ToolStripDropDownItem childItem4 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
171
IEnumerable<Type> types =
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type);
193
using ToolStripDropDownItem parentItem1 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(parentType);
194
using ToolStripDropDownItem parentItem2 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(parentType);
195
using ToolStripDropDownItem childItem1 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
196
using ToolStripDropDownItem childItem2 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
197
using ToolStripDropDownItem childItem3 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
198
using ToolStripDropDownItem childItem4 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (6)
44
return
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripItem>().Select(type => new object[] { type });
53
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
67
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
79
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
92
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
116
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (3)
12
IEnumerable<Type> types =
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type);
33
using ToolStripDropDownItem ownerItem =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(itemType);
95
using ToolStripDropDownItem ownerItem =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(itemType);