46 references to ReflectionHelper
System.Windows.Forms.Tests (46)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (18)
1247return ReflectionHelper.GetPublicNotAbstractClasses<Control>() 1256using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1275using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1297using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1315using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1334using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1362foreach (Type type in ReflectionHelper.GetPublicNotAbstractClasses<Control>()) 1381using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1429using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1445using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1476using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1492using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1512using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1546using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1584using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1655using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1679using var control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1723using var control = ReflectionHelper.InvokePublicConstructor<Control>(type);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (2)
13return ReflectionHelper.GetPublicNotAbstractClasses<ToolStripControlHost>().Select(type => new object[] { type }); 22using ToolStripControlHost item = ReflectionHelper.InvokePublicConstructor<ToolStripControlHost>(type);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (17)
12IEnumerable<Type> types = ReflectionHelper.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type); 33using ToolStripDropDownItem item = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(itemType); 79IEnumerable<Type> types = ReflectionHelper.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type); 108using ToolStripDropDownItem ownerItem = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(ownerType); 109using ToolStripDropDownItem parentItem1 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(parentType); 110using ToolStripDropDownItem parentItem2 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(parentType); 111using ToolStripDropDownItem childItem1 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(childType); 112using ToolStripDropDownItem childItem2 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(childType); 113using ToolStripDropDownItem childItem3 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(childType); 114using ToolStripDropDownItem childItem4 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(childType); 171IEnumerable<Type> types = ReflectionHelper.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type); 193using ToolStripDropDownItem parentItem1 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(parentType); 194using ToolStripDropDownItem parentItem2 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(parentType); 195using ToolStripDropDownItem childItem1 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(childType); 196using ToolStripDropDownItem childItem2 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(childType); 197using ToolStripDropDownItem childItem3 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(childType); 198using ToolStripDropDownItem childItem4 = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(childType);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (6)
44return ReflectionHelper.GetPublicNotAbstractClasses<ToolStripItem>().Select(type => new object[] { type }); 53using ToolStripItem item = ReflectionHelper.InvokePublicConstructor<ToolStripItem>(type); 67using ToolStripItem item = ReflectionHelper.InvokePublicConstructor<ToolStripItem>(type); 79using ToolStripItem item = ReflectionHelper.InvokePublicConstructor<ToolStripItem>(type); 92using ToolStripItem item = ReflectionHelper.InvokePublicConstructor<ToolStripItem>(type); 116using ToolStripItem item = ReflectionHelper.InvokePublicConstructor<ToolStripItem>(type);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (3)
12IEnumerable<Type> types = ReflectionHelper.GetPublicNotAbstractClasses<ToolStripDropDownItem>().Select(type => type); 33using ToolStripDropDownItem ownerItem = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(itemType); 95using ToolStripDropDownItem ownerItem = ReflectionHelper.InvokePublicConstructor<ToolStripDropDownItem>(itemType);