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