System\ComponentModel\Design\DesignSurfaceTests.cs (85)
22Assert.False(surface.Host.CanReloadWithErrors);
23Assert.Same(surface.Host, surface.Host.Container);
24Assert.False(surface.Host.Loading);
25Assert.False(surface.Host.IgnoreErrorsDuringReload);
26Assert.False(surface.Host.InTransaction);
27Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction);
28Assert.Null(surface.Host.RootComponent);
29Assert.Null(surface.Host.RootComponentClassName);
30surface.Host.TransactionDescription.Should().BeNullOrEmpty();
61Assert.False(surface.Host.CanReloadWithErrors);
62Assert.Same(surface.Host, surface.Host.Container);
63Assert.False(surface.Host.Loading);
64Assert.False(surface.Host.IgnoreErrorsDuringReload);
65Assert.False(surface.Host.InTransaction);
66Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction);
67Assert.Null(surface.Host.RootComponent);
68Assert.Null(surface.Host.RootComponentClassName);
69surface.Host.TransactionDescription.Should().BeNullOrEmpty();
83Assert.False(surface.Host.CanReloadWithErrors);
84Assert.Same(surface.Host, surface.Host.Container);
85Assert.False(surface.Host.Loading);
86Assert.False(surface.Host.IgnoreErrorsDuringReload);
87Assert.False(surface.Host.InTransaction);
88Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction);
89Assert.IsType<RootDesignerComponent>(surface.Host.RootComponent);
90Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName);
91surface.Host.TransactionDescription.Should().BeNullOrEmpty();
105Assert.False(surface.Host.CanReloadWithErrors);
106Assert.Same(surface.Host, surface.Host.Container);
107Assert.False(surface.Host.Loading);
108Assert.False(surface.Host.IgnoreErrorsDuringReload);
109Assert.False(surface.Host.InTransaction);
110Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction);
111Assert.IsType<RootDesignerComponent>(surface.Host.RootComponent);
112Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName);
113surface.Host.TransactionDescription.Should().BeNullOrEmpty();
152Assert.False(surface.Host.CanReloadWithErrors);
153Assert.Same(surface.Host, surface.Host.Container);
154Assert.False(surface.Host.Loading);
155Assert.False(surface.Host.IgnoreErrorsDuringReload);
156Assert.False(surface.Host.InTransaction);
157Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction);
158Assert.IsType<RootDesignerComponent>(surface.Host.RootComponent);
159Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName);
160surface.Host.TransactionDescription.Should().BeNullOrEmpty();
284Assert.Same(surface.Host, container.GetService(serviceType));
355IDesignerLoaderHost2 host = surface.Host;
377IDesignerLoaderHost2 host = surface.Host;
415IDesignerLoaderHost2 host = surface.Host;
423Assert.True(surface.Host.Loading);
436IDesignerLoaderHost2 host = surface.Host;
446Assert.False(surface.Host.Loading);
462IDesignerLoaderHost2 host = surface.Host;
474Assert.False(surface.Host.Loading);
482IDesignerLoaderHost2 host = surface.Host;
493Assert.False(surface.Host.Loading);
500IDesignerLoaderHost2 host = surface.Host;
525Assert.True(surface.Host.Loading);
537Assert.True(surface.Host.Loading);
550IDesignerLoaderHost2 host = surface.Host;
590Assert.False(surface.Host.Loading);
600Assert.False(surface.Host.Loading);
624IDesignerLoaderHost2 host = surface.Host;
664IDesignerLoaderHost2 host = surface.Host;
709IDesignerLoaderHost2 host = surface.Host;
735IDesignerLoaderHost2 host = surface.Host;
767IDesignerLoaderHost2 host = surface.Host;
851IDesignerLoaderHost2 host = surface.Host;
895IDesignerLoaderHost2 host = surface.Host;
931IDesignerLoaderHost2 host = surface.Host;
935Assert.False(surface.Host.Loading);
953IDesignerLoaderHost2 host = surface.Host;
1190IDesignerLoaderHost2 host = surface.Host;
1207IDesignerLoaderHost2 host = surface.Host;
1292IDesignerLoaderHost2 host = surface.Host;
1309IDesignerLoaderHost2 host = surface.Host;
1326IDesignerLoaderHost2 host = surface.Host;
1351IDesignerLoaderHost2 host = surface.Host;
1407IDesignerLoaderHost2 host = surface.Host;
1550Assert.Same(surface.Host, surface.GetService(serviceType));