6 references to CreateComponent
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\DesignSurfaceTests.cs (6)
1025ComponentWithPublicConstructor instance = Assert.IsType<ComponentWithPublicConstructor>(surface.CreateComponent(typeof(ComponentWithPublicConstructor))); 1033ComponentWithPrivateDefaultConstructor instance = Assert.IsType<ComponentWithPrivateDefaultConstructor>(surface.CreateComponent(typeof(ComponentWithPrivateDefaultConstructor))); 1041ComponentWithIContainerConstructor instance = Assert.IsType<ComponentWithIContainerConstructor>(surface.CreateComponent(typeof(ComponentWithIContainerConstructor))); 1051Assert.Null(surface.CreateComponent(type)); 1062Assert.Throws<MissingMethodException>(() => surface.CreateComponent(type)); 1069Assert.Throws<ArgumentNullException>("type", () => surface.CreateComponent(null));