9 references to CreateDesigner
System.Windows.Forms.Design.Tests (9)
System\ComponentModel\Design\DesignSurfaceTests.cs (9)
982Assert.NotNull(surface.CreateDesigner(component, rootDesigner)); 991Assert.IsType<ComponentDocumentDesigner>(surface.CreateDesigner(component, rootDesigner: true)); 992Assert.IsType<ComponentDesigner>(surface.CreateDesigner(component, rootDesigner: false)); 1000Assert.IsType<RootComponentDesigner>(surface.CreateDesigner(component, rootDesigner: true)); 1001Assert.IsType<ComponentDesigner>(surface.CreateDesigner(component, rootDesigner: false)); 1008Assert.Throws<ArgumentNullException>("component", () => surface.CreateDesigner(null, true)); 1009Assert.Throws<ArgumentNullException>("component", () => surface.CreateDesigner(null, false)); 1017Assert.Throws<ObjectDisposedException>(() => surface.CreateDesigner(new Component(), true)); 1018Assert.Throws<ObjectDisposedException>(() => surface.CreateDesigner(new Component(), false));