1 instantiation of RootDesignerComponent
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\DesignSurfaceTests.cs (1)
999
using RootDesignerComponent component =
new
();
15 references to RootDesignerComponent
System.Windows.Forms.Design.Tests (15)
System\ComponentModel\Design\DesignSurfaceTests.cs (15)
77
using SubDesignSurface surface = new(typeof(
RootDesignerComponent
));
87
Assert.IsType<
RootDesignerComponent
>(surface.Host.RootComponent);
88
Assert.Equal(typeof(
RootDesignerComponent
).FullName, surface.Host.RootComponentClassName);
99
using SubDesignSurface surface = new(null, typeof(
RootDesignerComponent
));
109
Assert.IsType<
RootDesignerComponent
>(surface.Host.RootComponent);
110
Assert.Equal(typeof(
RootDesignerComponent
).FullName, surface.Host.RootComponentClassName);
146
using SubDesignSurface surface = new(mockServiceProvider.Object, typeof(
RootDesignerComponent
));
156
Assert.IsType<
RootDesignerComponent
>(surface.Host.RootComponent);
157
Assert.Equal(typeof(
RootDesignerComponent
).FullName, surface.Host.RootComponentClassName);
930
surface.BeginLoad(typeof(
RootDesignerComponent
));
935
Assert.IsType<
RootDesignerComponent
>(host.RootComponent);
936
Assert.Equal(typeof(
RootDesignerComponent
).FullName, host.RootComponentClassName);
960
Assert.Throws<InvalidOperationException>(() => surface.BeginLoad(typeof(
RootDesignerComponent
)));
970
Assert.Throws<ObjectDisposedException>(() => surface.BeginLoad(typeof(
RootDesignerComponent
)));
999
using
RootDesignerComponent
component = new();