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