46 references to ReflectionHelper
System.Windows.Forms.Tests (46)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (18)
1236return ReflectionHelper.GetPublicNotAbstractClasses<Control>().Select(type => new object[] { type }); 1243using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1262using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1284using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1302using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1321using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1349foreach (Type type in ReflectionHelper.GetPublicNotAbstractClasses<Control>()) 1363using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1411using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1427using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1458using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1474using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1494using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1528using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1566using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1637using Control control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1661using var control = ReflectionHelper.InvokePublicConstructor<Control>(type); 1705using 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);