6 references to CreateComponent
System.Windows.Forms.Design.Tests (6)
System\ComponentModel\Design\DesignSurfaceTests.cs (6)
1027
ComponentWithPublicConstructor instance = Assert.IsType<ComponentWithPublicConstructor>(surface.
CreateComponent
(typeof(ComponentWithPublicConstructor)));
1035
ComponentWithPrivateDefaultConstructor instance = Assert.IsType<ComponentWithPrivateDefaultConstructor>(surface.
CreateComponent
(typeof(ComponentWithPrivateDefaultConstructor)));
1043
ComponentWithIContainerConstructor instance = Assert.IsType<ComponentWithIContainerConstructor>(surface.
CreateComponent
(typeof(ComponentWithIContainerConstructor)));
1053
Assert.Null(surface.
CreateComponent
(type));
1064
Assert.Throws<MissingMethodException>(() => surface.
CreateComponent
(type));
1071
Assert.Throws<ArgumentNullException>("type", () => surface.
CreateComponent
(null));