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)
176
NodeEndpointInProc.EndpointMode.Synchronous,
_host
);
180
NodeEndpointInProc.EndpointMode.Asynchronous,
_host
);
213
NodeEndpointInProc.EndpointMode.Synchronous,
_host
);
220
endpoints.ManagerEndpoint.Listen(
_host
);
221
endpoints.NodeEndpoint.Connect(
_host
);
233
NodeEndpointInProc.EndpointMode.Asynchronous,
_host
);
240
endpoints.ManagerEndpoint.Listen(
_host
);
241
endpoints.NodeEndpoint.Connect(
_host
);
251
NodeEndpointInProc.EndpointMode.Synchronous,
_host
);
257
endpoints.ManagerEndpoint.Listen(
_host
);
264
endpoints.NodeEndpoint.Connect(
_host
);
291
NodeEndpointInProc.EndpointMode.Synchronous,
_host
);
294
endpoints.ManagerEndpoint.Listen(
_host
);
295
endpoints.NodeEndpoint.Connect(
_host
);
304
Assert.Equal(
_host
.DataReceivedContext.packet, managerPacket);
305
Assert.Equal(
_host
.DataReceivedContext.thread.ManagedThreadId, Thread.CurrentThread.ManagedThreadId);
310
Assert.Equal(
_host
.DataReceivedContext.packet, nodePacket);
311
Assert.Equal(
_host
.DataReceivedContext.thread.ManagedThreadId, Thread.CurrentThread.ManagedThreadId);
320
NodeEndpointInProc.EndpointMode.Asynchronous,
_host
);
323
endpoints.ManagerEndpoint.Listen(
_host
);
324
endpoints.NodeEndpoint.Connect(
_host
);
333
if (!
_host
.DataReceivedEvent.WaitOne(1000))
337
Assert.Equal(
_host
.DataReceivedContext.packet, managerPacket);
338
Assert.NotEqual(
_host
.DataReceivedContext.thread.ManagedThreadId, Thread.CurrentThread.ManagedThreadId);
343
if (!
_host
.DataReceivedEvent.WaitOne(1000))
347
Assert.Equal(
_host
.DataReceivedContext.packet, nodePacket);
348
Assert.NotEqual(
_host
.DataReceivedContext.thread.ManagedThreadId, Thread.CurrentThread.ManagedThreadId);
425
NodeEndpointInProc.CreateInProcEndpoints(mode,
_host
);
431
endpoints.ManagerEndpoint.Listen(
_host
);
432
endpoints.NodeEndpoint.Connect(
_host
);