@@ -283,8 +283,8 @@ [Values] bool setPluginSessionCallbackNull
283
283
284
284
var taskAccept = Task . Run ( async ( ) => await node . AcceptSingleSessionAsync ( ) ) ;
285
285
286
- Assert . That ( plugin . StartedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( plugin . StartedSessionIds ) ) ;
287
- Assert . That ( plugin . ClosedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( plugin . ClosedSessionIds ) ) ;
286
+ Assert . That ( plugin . StartedSessionIds . Count , Is . Zero , nameof ( plugin . StartedSessionIds ) ) ;
287
+ Assert . That ( plugin . ClosedSessionIds . Count , Is . Zero , nameof ( plugin . ClosedSessionIds ) ) ;
288
288
289
289
using var client = CreateClient ( ( IPEndPoint ) node . EndPoint , out var writer , out var reader ) ;
290
290
@@ -295,25 +295,25 @@ [Values] bool setPluginSessionCallbackNull
295
295
await Task . Delay ( 500 ) ; // wait for node process completed
296
296
297
297
if ( isPluginProviderSessionCallbackNull ) {
298
- Assert . That ( pluginProvider . StartedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( pluginProvider . StartedSessionIds ) ) ;
299
- Assert . That ( pluginProvider . ClosedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( pluginProvider . ClosedSessionIds ) ) ;
298
+ Assert . That ( pluginProvider . StartedSessionIds . Count , Is . Zero , nameof ( pluginProvider . StartedSessionIds ) ) ;
299
+ Assert . That ( pluginProvider . ClosedSessionIds . Count , Is . Zero , nameof ( pluginProvider . ClosedSessionIds ) ) ;
300
300
}
301
301
else {
302
302
Assert . That ( pluginProvider . StartedSessionIds . Count , Is . EqualTo ( 1 ) , nameof ( pluginProvider . StartedSessionIds ) ) ;
303
303
Assert . That ( pluginProvider . StartedSessionIds [ 0 ] , Is . Not . Empty , nameof ( pluginProvider . StartedSessionIds ) ) ;
304
304
305
- Assert . That ( pluginProvider . ClosedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( pluginProvider . ClosedSessionIds ) ) ;
305
+ Assert . That ( pluginProvider . ClosedSessionIds . Count , Is . Zero , nameof ( pluginProvider . ClosedSessionIds ) ) ;
306
306
}
307
307
308
308
if ( isPluginSessionCallbackNull ) {
309
- Assert . That ( plugin . StartedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( plugin . StartedSessionIds ) ) ;
310
- Assert . That ( plugin . ClosedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( plugin . ClosedSessionIds ) ) ;
309
+ Assert . That ( plugin . StartedSessionIds . Count , Is . Zero , nameof ( plugin . StartedSessionIds ) ) ;
310
+ Assert . That ( plugin . ClosedSessionIds . Count , Is . Zero , nameof ( plugin . ClosedSessionIds ) ) ;
311
311
}
312
312
else {
313
313
Assert . That ( plugin . StartedSessionIds . Count , Is . EqualTo ( 1 ) , nameof ( plugin . StartedSessionIds ) ) ;
314
314
Assert . That ( plugin . StartedSessionIds [ 0 ] , Is . Not . Empty , nameof ( plugin . StartedSessionIds ) ) ;
315
315
316
- Assert . That ( plugin . ClosedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( plugin . ClosedSessionIds ) ) ;
316
+ Assert . That ( plugin . ClosedSessionIds . Count , Is . Zero , nameof ( plugin . ClosedSessionIds ) ) ;
317
317
}
318
318
319
319
writer . WriteLine ( "." ) ;
@@ -322,8 +322,8 @@ [Values] bool setPluginSessionCallbackNull
322
322
Assert . DoesNotThrowAsync ( async ( ) => await taskAccept ) ;
323
323
324
324
if ( isPluginProviderSessionCallbackNull ) {
325
- Assert . That ( pluginProvider . StartedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( pluginProvider . StartedSessionIds ) ) ;
326
- Assert . That ( pluginProvider . ClosedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( pluginProvider . ClosedSessionIds ) ) ;
325
+ Assert . That ( pluginProvider . StartedSessionIds . Count , Is . Zero , nameof ( pluginProvider . StartedSessionIds ) ) ;
326
+ Assert . That ( pluginProvider . ClosedSessionIds . Count , Is . Zero , nameof ( pluginProvider . ClosedSessionIds ) ) ;
327
327
}
328
328
else {
329
329
Assert . That ( pluginProvider . StartedSessionIds . Count , Is . EqualTo ( 1 ) , nameof ( pluginProvider . StartedSessionIds ) ) ;
@@ -333,8 +333,8 @@ [Values] bool setPluginSessionCallbackNull
333
333
}
334
334
335
335
if ( isPluginSessionCallbackNull ) {
336
- Assert . That ( plugin . StartedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( plugin . StartedSessionIds ) ) ;
337
- Assert . That ( plugin . ClosedSessionIds . Count , Is . EqualTo ( 0 ) , nameof ( plugin . ClosedSessionIds ) ) ;
336
+ Assert . That ( plugin . StartedSessionIds . Count , Is . Zero , nameof ( plugin . StartedSessionIds ) ) ;
337
+ Assert . That ( plugin . ClosedSessionIds . Count , Is . Zero , nameof ( plugin . ClosedSessionIds ) ) ;
338
338
}
339
339
else {
340
340
Assert . That ( plugin . StartedSessionIds . Count , Is . EqualTo ( 1 ) , nameof ( plugin . StartedSessionIds ) ) ;
0 commit comments