1 write to _host
Microsoft.Build.Engine.UnitTests (1)
BackEnd\NodeEndpointInProc_Tests.cs (1)
356_host = new MockHost();
30 references to _host
Microsoft.Build.Engine.UnitTests (30)
BackEnd\NodeEndpointInProc_Tests.cs (30)
176NodeEndpointInProc.EndpointMode.Synchronous, _host); 180NodeEndpointInProc.EndpointMode.Asynchronous, _host); 213NodeEndpointInProc.EndpointMode.Synchronous, _host); 220endpoints.ManagerEndpoint.Listen(_host); 221endpoints.NodeEndpoint.Connect(_host); 233NodeEndpointInProc.EndpointMode.Asynchronous, _host); 240endpoints.ManagerEndpoint.Listen(_host); 241endpoints.NodeEndpoint.Connect(_host); 251NodeEndpointInProc.EndpointMode.Synchronous, _host); 257endpoints.ManagerEndpoint.Listen(_host); 264endpoints.NodeEndpoint.Connect(_host); 291NodeEndpointInProc.EndpointMode.Synchronous, _host); 294endpoints.ManagerEndpoint.Listen(_host); 295endpoints.NodeEndpoint.Connect(_host); 304Assert.Equal(_host.DataReceivedContext.packet, managerPacket); 305Assert.Equal(_host.DataReceivedContext.thread.ManagedThreadId, Thread.CurrentThread.ManagedThreadId); 310Assert.Equal(_host.DataReceivedContext.packet, nodePacket); 311Assert.Equal(_host.DataReceivedContext.thread.ManagedThreadId, Thread.CurrentThread.ManagedThreadId); 320NodeEndpointInProc.EndpointMode.Asynchronous, _host); 323endpoints.ManagerEndpoint.Listen(_host); 324endpoints.NodeEndpoint.Connect(_host); 333if (!_host.DataReceivedEvent.WaitOne(1000)) 337Assert.Equal(_host.DataReceivedContext.packet, managerPacket); 338Assert.NotEqual(_host.DataReceivedContext.thread.ManagedThreadId, Thread.CurrentThread.ManagedThreadId); 343if (!_host.DataReceivedEvent.WaitOne(1000)) 347Assert.Equal(_host.DataReceivedContext.packet, nodePacket); 348Assert.NotEqual(_host.DataReceivedContext.thread.ManagedThreadId, Thread.CurrentThread.ManagedThreadId); 425NodeEndpointInProc.CreateInProcEndpoints(mode, _host); 431endpoints.ManagerEndpoint.Listen(_host); 432endpoints.NodeEndpoint.Connect(_host);