93 references to QuicTestHelpers
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (93)
QuicConnectionContextTests.cs (34)
28
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(
35
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
52
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(
59
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
80
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
85
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
121
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
126
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
151
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
153
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
193
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
195
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
243
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
245
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
288
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
290
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
314
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
316
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
357
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
359
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
402
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
404
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
451
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
453
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
509
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory, timeProvider);
511
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
523
var stream1 = await
QuicTestHelpers
.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger);
535
var stream2 = await
QuicTestHelpers
.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger);
563
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
565
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
668
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
670
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
747
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
749
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
QuicConnectionListenerTests.cs (28)
32
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
46
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
51
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
69
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
75
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint));
89
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint, ignoreInvalidCertificate: false));
100
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint));
115
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory, clientCertificateRequired: true);
117
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
155
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory, clientCertificateRequired: true);
157
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
166
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(
182
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
196
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
214
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
233
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(
255
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
275
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
280
await Assert.ThrowsAsync<AddressInUseException>(() =>
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory, port: port));
295
await Assert.ThrowsAsync<AddressInUseException>(() =>
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory, port: port));
303
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(
319
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
336
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(
354
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
379
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(
396
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
431
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(
450
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
QuicStreamContextTests.cs (31)
35
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
37
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
43
await
QuicTestHelpers
.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger);
59
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
61
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
107
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
109
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
175
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
177
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
232
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
234
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
240
var stream1 = await
QuicTestHelpers
.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger);
241
var stream2 = await
QuicTestHelpers
.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger);
254
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
256
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
298
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
300
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
332
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
334
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
371
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
373
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
402
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
404
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
443
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
445
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
487
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
489
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
537
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
539
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);
564
await using var connectionListener = await
QuicTestHelpers
.CreateConnectionListenerFactory(LoggerFactory);
566
var options =
QuicTestHelpers
.CreateClientConnectionOptions(connectionListener.EndPoint);