1 write to _host
VBCSCompiler.UnitTests (1)
NamedPipeClientConnectionHostTests.cs (1)
23
_host
= new NamedPipeClientConnectionHost(ServerUtil.GetPipeName(), new XunitCompilerServerLogger(testOutputHelper));
26 references to _host
VBCSCompiler.UnitTests (26)
NamedPipeClientConnectionHostTests.cs (26)
28
if (
_host
.IsListening)
30
_host
.EndListening();
33
Assert.True(NamedPipeTestUtil.IsPipeFullyClosed(
_host
.PipeName));
37
_host
.PipeName,
39
logger:
_host
.Logger,
45
await Assert.ThrowsAsync<InvalidOperationException>(() =>
_host
.GetNextClientConnectionAsync());
51
_host
.BeginListening();
52
var task =
_host
.GetNextClientConnectionAsync();
55
Assert.NotNull(
_host
.GetNextClientConnectionAsync());
56
_host
.EndListening();
62
_host
.BeginListening();
63
var task =
_host
.GetNextClientConnectionAsync();
64
_host
.EndListening();
76
_host
.BeginListening();
77
var task =
_host
.GetNextClientConnectionAsync();
80
_host
.EndListening();
92
_host
.BeginListening();
103
var clientConnection = await
_host
.GetNextClientConnectionAsync();
112
_host
.EndListening();
122
_host
.BeginListening();
131
_host
.EndListening();
149
_host
.BeginListening();
150
Assert.True(
_host
.IsListening);
152
using var server = await
_host
.GetNextClientConnectionAsync();
153
_host
.EndListening();
154
Assert.False(
_host
.IsListening);