85 references to Host
System.Windows.Forms.Design.Tests (85)
System\ComponentModel\Design\DesignSurfaceTests.cs (85)
20Assert.False(surface.Host.CanReloadWithErrors); 21Assert.Same(surface.Host, surface.Host.Container); 22Assert.False(surface.Host.Loading); 23Assert.False(surface.Host.IgnoreErrorsDuringReload); 24Assert.False(surface.Host.InTransaction); 25Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction); 26Assert.Null(surface.Host.RootComponent); 27Assert.Null(surface.Host.RootComponentClassName); 28surface.Host.TransactionDescription.Should().BeNullOrEmpty(); 59Assert.False(surface.Host.CanReloadWithErrors); 60Assert.Same(surface.Host, surface.Host.Container); 61Assert.False(surface.Host.Loading); 62Assert.False(surface.Host.IgnoreErrorsDuringReload); 63Assert.False(surface.Host.InTransaction); 64Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction); 65Assert.Null(surface.Host.RootComponent); 66Assert.Null(surface.Host.RootComponentClassName); 67surface.Host.TransactionDescription.Should().BeNullOrEmpty(); 81Assert.False(surface.Host.CanReloadWithErrors); 82Assert.Same(surface.Host, surface.Host.Container); 83Assert.False(surface.Host.Loading); 84Assert.False(surface.Host.IgnoreErrorsDuringReload); 85Assert.False(surface.Host.InTransaction); 86Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction); 87Assert.IsType<RootDesignerComponent>(surface.Host.RootComponent); 88Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName); 89surface.Host.TransactionDescription.Should().BeNullOrEmpty(); 103Assert.False(surface.Host.CanReloadWithErrors); 104Assert.Same(surface.Host, surface.Host.Container); 105Assert.False(surface.Host.Loading); 106Assert.False(surface.Host.IgnoreErrorsDuringReload); 107Assert.False(surface.Host.InTransaction); 108Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction); 109Assert.IsType<RootDesignerComponent>(surface.Host.RootComponent); 110Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName); 111surface.Host.TransactionDescription.Should().BeNullOrEmpty(); 150Assert.False(surface.Host.CanReloadWithErrors); 151Assert.Same(surface.Host, surface.Host.Container); 152Assert.False(surface.Host.Loading); 153Assert.False(surface.Host.IgnoreErrorsDuringReload); 154Assert.False(surface.Host.InTransaction); 155Assert.False(((IDesignerHostTransactionState)surface.Host).IsClosingTransaction); 156Assert.IsType<RootDesignerComponent>(surface.Host.RootComponent); 157Assert.Equal(typeof(RootDesignerComponent).FullName, surface.Host.RootComponentClassName); 158surface.Host.TransactionDescription.Should().BeNullOrEmpty(); 282Assert.Same(surface.Host, container.GetService(serviceType)); 353IDesignerLoaderHost2 host = surface.Host; 375IDesignerLoaderHost2 host = surface.Host; 413IDesignerLoaderHost2 host = surface.Host; 421Assert.True(surface.Host.Loading); 434IDesignerLoaderHost2 host = surface.Host; 444Assert.False(surface.Host.Loading); 460IDesignerLoaderHost2 host = surface.Host; 472Assert.False(surface.Host.Loading); 480IDesignerLoaderHost2 host = surface.Host; 491Assert.False(surface.Host.Loading); 498IDesignerLoaderHost2 host = surface.Host; 523Assert.True(surface.Host.Loading); 535Assert.True(surface.Host.Loading); 548IDesignerLoaderHost2 host = surface.Host; 588Assert.False(surface.Host.Loading); 598Assert.False(surface.Host.Loading); 622IDesignerLoaderHost2 host = surface.Host; 662IDesignerLoaderHost2 host = surface.Host; 707IDesignerLoaderHost2 host = surface.Host; 733IDesignerLoaderHost2 host = surface.Host; 765IDesignerLoaderHost2 host = surface.Host; 849IDesignerLoaderHost2 host = surface.Host; 893IDesignerLoaderHost2 host = surface.Host; 929IDesignerLoaderHost2 host = surface.Host; 933Assert.False(surface.Host.Loading); 951IDesignerLoaderHost2 host = surface.Host; 1188IDesignerLoaderHost2 host = surface.Host; 1205IDesignerLoaderHost2 host = surface.Host; 1290IDesignerLoaderHost2 host = surface.Host; 1307IDesignerLoaderHost2 host = surface.Host; 1324IDesignerLoaderHost2 host = surface.Host; 1349IDesignerLoaderHost2 host = surface.Host; 1405IDesignerLoaderHost2 host = surface.Host; 1548Assert.Same(surface.Host, surface.GetService(serviceType));