7 references to CreateInstance
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\DesignSurfaceTests.cs (7)
1076Assert.IsType<ClassWithPublicConstructor>(surface.CreateInstance(typeof(ClassWithPublicConstructor))); 1083Assert.IsType<ClassWithPrivateDefaultConstructor>(surface.CreateInstance(typeof(ClassWithPrivateDefaultConstructor))); 1090ComponentWithPublicConstructor instance = Assert.IsType<ComponentWithPublicConstructor>(surface.CreateInstance(typeof(ComponentWithPublicConstructor))); 1098ComponentWithPrivateDefaultConstructor instance = Assert.IsType<ComponentWithPrivateDefaultConstructor>(surface.CreateInstance(typeof(ComponentWithPrivateDefaultConstructor))); 1106ComponentWithIContainerConstructor instance = Assert.IsType<ComponentWithIContainerConstructor>(surface.CreateInstance(typeof(ComponentWithIContainerConstructor))); 1118Assert.Throws<MissingMethodException>(() => surface.CreateInstance(type)); 1125Assert.Throws<ArgumentNullException>("type", () => surface.CreateInstance(null));