@@ -25,7 +25,8 @@ public async Task PushData_bytes_should_deliver_TransportData_inbound()
2525 . AutoConnect ( )
2626 . Build ( ) ;
2727
28- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
28+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
29+ { Host = "localhost" , Port = 80 } ) )
2930 . Via ( stage . AsFlow ( ) )
3031 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
3132 {
@@ -57,7 +58,8 @@ public async Task PushData_string_should_deliver_TransportData_inbound()
5758 . AutoConnect ( )
5859 . Build ( ) ;
5960
60- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
61+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
62+ { Host = "localhost" , Port = 80 } ) )
6163 . Via ( stage . AsFlow ( ) )
6264 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
6365 {
@@ -88,7 +90,8 @@ public async Task PushStreamOpened_should_deliver_StreamOpened_inbound()
8890 . AutoConnect ( )
8991 . Build ( ) ;
9092
91- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
93+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
94+ { Host = "localhost" , Port = 80 } ) )
9295 . Via ( stage . AsFlow ( ) )
9396 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
9497 {
@@ -100,13 +103,13 @@ public async Task PushStreamOpened_should_deliver_StreamOpened_inbound()
100103 } ) , _materializer ) ;
101104
102105 await stage . WaitForOutbound ( ct ) ;
103- stage . PushStreamOpened ( 42 , StreamDirection . Bidirectional ) ;
106+ stage . PushStreamOpened ( 42 ) ;
104107
105108 await tcs . Task . WaitAsync ( ct ) ;
106109
107110 Assert . IsType < TransportConnected > ( inbound [ 0 ] ) ;
108111 var opened = Assert . IsType < StreamOpened > ( inbound [ 1 ] ) ;
109- Assert . Equal ( 42L , opened . StreamId ) ;
112+ Assert . Equal ( 42L , ( long ) opened . Id ) ;
110113 Assert . Equal ( StreamDirection . Bidirectional , opened . Direction ) ;
111114 }
112115
@@ -121,7 +124,8 @@ public async Task PushMultiplexedData_should_deliver_MultiplexedData_inbound()
121124 . AutoConnect ( )
122125 . Build ( ) ;
123126
124- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
127+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
128+ { Host = "localhost" , Port = 80 } ) )
125129 . Via ( stage . AsFlow ( ) )
126130 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
127131 {
@@ -139,7 +143,7 @@ public async Task PushMultiplexedData_should_deliver_MultiplexedData_inbound()
139143
140144 Assert . IsType < TransportConnected > ( inbound [ 0 ] ) ;
141145 var mux = Assert . IsType < MultiplexedData > ( inbound [ 1 ] ) ;
142- Assert . Equal ( 7L , mux . StreamId ) ;
146+ Assert . Equal ( 7L , ( long ) mux . StreamId ) ;
143147 Assert . Equal ( 2 , mux . Buffer . Length ) ;
144148 }
145149
@@ -154,7 +158,8 @@ public async Task SimulateInboundStream_should_push_full_lifecycle()
154158 . AutoConnect ( )
155159 . Build ( ) ;
156160
157- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
161+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
162+ { Host = "localhost" , Port = 80 } ) )
158163 . Via ( stage . AsFlow ( ) )
159164 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
160165 {
@@ -172,7 +177,7 @@ public async Task SimulateInboundStream_should_push_full_lifecycle()
172177
173178 Assert . IsType < TransportConnected > ( inbound [ 0 ] ) ;
174179 var accepted = Assert . IsType < ServerStreamAccepted > ( inbound [ 1 ] ) ;
175- Assert . Equal ( 5L , accepted . StreamId ) ;
180+ Assert . Equal ( 5L , ( long ) accepted . Id ) ;
176181 Assert . Equal ( StreamDirection . Unidirectional , accepted . Direction ) ;
177182 Assert . IsType < MultiplexedData > ( inbound [ 2 ] ) ;
178183 Assert . IsType < MultiplexedData > ( inbound [ 3 ] ) ;
@@ -190,7 +195,8 @@ public async Task PushDisconnected_should_push_TransportDisconnected()
190195 . AutoConnect ( )
191196 . Build ( ) ;
192197
193- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
198+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
199+ { Host = "localhost" , Port = 80 } ) )
194200 . Via ( stage . AsFlow ( ) )
195201 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
196202 {
@@ -246,7 +252,7 @@ public async Task WaitForOpenStreamAsync_should_skip_non_open_messages()
246252 . RunWith ( Sink . Ignore < ITransportInbound > ( ) . MapMaterializedValue ( _ => NotUsed . Instance ) , _materializer ) ;
247253
248254 var open = await stage . WaitForOpenStreamAsync ( ct ) ;
249- Assert . Equal ( 1L , open . StreamId ) ;
255+ Assert . Equal ( 1L , ( long ) open . StreamId ) ;
250256 Assert . Equal ( StreamDirection . Bidirectional , open . Direction ) ;
251257 }
252258
@@ -261,7 +267,8 @@ public async Task PushStreamClosed_should_deliver_StreamClosed_inbound()
261267 . AutoConnect ( )
262268 . Build ( ) ;
263269
264- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
270+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
271+ { Host = "localhost" , Port = 80 } ) )
265272 . Via ( stage . AsFlow ( ) )
266273 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
267274 {
@@ -279,7 +286,7 @@ public async Task PushStreamClosed_should_deliver_StreamClosed_inbound()
279286
280287 Assert . IsType < TransportConnected > ( inbound [ 0 ] ) ;
281288 var closed = Assert . IsType < StreamClosed > ( inbound [ 1 ] ) ;
282- Assert . Equal ( 99L , closed . StreamId ) ;
289+ Assert . Equal ( 99L , ( long ) closed . Id ) ;
283290 Assert . Equal ( DisconnectReason . Error , closed . Reason ) ;
284291 }
285292
@@ -294,7 +301,8 @@ public async Task PushConnectionMigration_should_deliver_ConnectionMigrationDete
294301 . AutoConnect ( )
295302 . Build ( ) ;
296303
297- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
304+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
305+ { Host = "localhost" , Port = 80 } ) )
298306 . Via ( stage . AsFlow ( ) )
299307 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
300308 {
@@ -335,7 +343,7 @@ public async Task WaitForMultiplexedDataAsync_should_skip_non_multiplexed_messag
335343 . RunWith ( Sink . Ignore < ITransportInbound > ( ) . MapMaterializedValue ( _ => NotUsed . Instance ) , _materializer ) ;
336344
337345 var mux = await stage . WaitForMultiplexedDataAsync ( ct ) ;
338- Assert . Equal ( 1L , mux . StreamId ) ;
346+ Assert . Equal ( 1L , ( long ) mux . StreamId ) ;
339347 }
340348
341349 [ Fact ( Timeout = 5000 ) ]
@@ -349,7 +357,8 @@ public async Task PushStreamReadCompleted_should_deliver_StreamReadCompleted_inb
349357 . AutoConnect ( )
350358 . Build ( ) ;
351359
352- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
360+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
361+ { Host = "localhost" , Port = 80 } ) )
353362 . Via ( stage . AsFlow ( ) )
354363 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
355364 {
@@ -367,7 +376,7 @@ public async Task PushStreamReadCompleted_should_deliver_StreamReadCompleted_inb
367376
368377 Assert . IsType < TransportConnected > ( inbound [ 0 ] ) ;
369378 var completed = Assert . IsType < StreamReadCompleted > ( inbound [ 1 ] ) ;
370- Assert . Equal ( 42L , completed . StreamId ) ;
379+ Assert . Equal ( 42L , ( long ) completed . Id ) ;
371380 }
372381
373382 [ Fact ( Timeout = 5000 ) ]
@@ -381,7 +390,8 @@ public async Task PushStreamClosed_with_error_reason_should_deliver_error()
381390 . AutoConnect ( )
382391 . Build ( ) ;
383392
384- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
393+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
394+ { Host = "localhost" , Port = 80 } ) )
385395 . Via ( stage . AsFlow ( ) )
386396 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
387397 {
@@ -399,7 +409,7 @@ public async Task PushStreamClosed_with_error_reason_should_deliver_error()
399409
400410 Assert . IsType < TransportConnected > ( inbound [ 0 ] ) ;
401411 var closed = Assert . IsType < StreamClosed > ( inbound [ 1 ] ) ;
402- Assert . Equal ( 55L , closed . StreamId ) ;
412+ Assert . Equal ( 55L , ( long ) closed . Id ) ;
403413 Assert . Equal ( DisconnectReason . Error , closed . Reason ) ;
404414 }
405415
@@ -414,7 +424,8 @@ public async Task PushDisconnected_default_reason_should_be_graceful()
414424 . AutoConnect ( )
415425 . Build ( ) ;
416426
417- _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions { Host = "localhost" , Port = 80 } ) )
427+ _ = Source . Single < ITransportOutbound > ( new ConnectTransport ( new TcpTransportOptions
428+ { Host = "localhost" , Port = 80 } ) )
418429 . Via ( stage . AsFlow ( ) )
419430 . RunWith ( Sink . ForEach < ITransportInbound > ( msg =>
420431 {
@@ -434,4 +445,4 @@ public async Task PushDisconnected_default_reason_should_be_graceful()
434445 var disconnected = Assert . IsType < TransportDisconnected > ( inbound [ 1 ] ) ;
435446 Assert . Equal ( DisconnectReason . Graceful , disconnected . Reason ) ;
436447 }
437- }
448+ }
0 commit comments