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