46 references to ReflectionHelper
System.Windows.Forms.Tests (46)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (18)
1249
return
ReflectionHelper
.GetPublicNotAbstractClasses<Control>()
1258
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1277
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1299
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1317
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1336
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1364
foreach (Type type in
ReflectionHelper
.GetPublicNotAbstractClasses<Control>())
1383
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1431
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1447
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1478
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1494
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1514
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1548
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1586
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1657
using Control control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1681
using var control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
1725
using var control =
ReflectionHelper
.InvokePublicConstructor<Control>(type);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (2)
15
return
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripControlHost>().Select(type => new object[] { type });
24
using ToolStripControlHost item =
ReflectionHelper
.InvokePublicConstructor<ToolStripControlHost>(type);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (17)
14
IEnumerable<Type> types =
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type);
35
using ToolStripDropDownItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(itemType);
81
IEnumerable<Type> types =
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type);
110
using ToolStripDropDownItem ownerItem =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(ownerType);
111
using ToolStripDropDownItem parentItem1 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(parentType);
112
using ToolStripDropDownItem parentItem2 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(parentType);
113
using ToolStripDropDownItem childItem1 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
114
using ToolStripDropDownItem childItem2 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
115
using ToolStripDropDownItem childItem3 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
116
using ToolStripDropDownItem childItem4 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
173
IEnumerable<Type> types =
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type);
195
using ToolStripDropDownItem parentItem1 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(parentType);
196
using ToolStripDropDownItem parentItem2 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(parentType);
197
using ToolStripDropDownItem childItem1 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
198
using ToolStripDropDownItem childItem2 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
199
using ToolStripDropDownItem childItem3 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
200
using ToolStripDropDownItem childItem4 =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(childType);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (6)
46
return
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripItem>().Select(type => new object[] { type });
55
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
69
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
81
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
94
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
118
using ToolStripItem item =
ReflectionHelper
.InvokePublicConstructor<ToolStripItem>(type);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (3)
14
IEnumerable<Type> types =
ReflectionHelper
.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type);
35
using ToolStripDropDownItem ownerItem =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(itemType);
97
using ToolStripDropDownItem ownerItem =
ReflectionHelper
.InvokePublicConstructor<ToolStripDropDownItem>(itemType);