9 references to CreateDesigner
System.Windows.Forms.Design.Tests (9)
System\ComponentModel\Design\DesignSurfaceTests.cs (9)
984Assert.NotNull(surface.CreateDesigner(component, rootDesigner)); 993Assert.IsType<ComponentDocumentDesigner>(surface.CreateDesigner(component, rootDesigner: true)); 994Assert.IsType<ComponentDesigner>(surface.CreateDesigner(component, rootDesigner: false)); 1002Assert.IsType<RootComponentDesigner>(surface.CreateDesigner(component, rootDesigner: true)); 1003Assert.IsType<ComponentDesigner>(surface.CreateDesigner(component, rootDesigner: false)); 1010Assert.Throws<ArgumentNullException>("component", () => surface.CreateDesigner(null, true)); 1011Assert.Throws<ArgumentNullException>("component", () => surface.CreateDesigner(null, false)); 1019Assert.Throws<ObjectDisposedException>(() => surface.CreateDesigner(new Component(), true)); 1020Assert.Throws<ObjectDisposedException>(() => surface.CreateDesigner(new Component(), false));