@@ -49,7 +49,7 @@ public void Anonymous()
49
49
var listTask = ExecuteListPods ( client ) ;
50
50
51
51
Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
52
- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
52
+ Assert . Single ( listTask . Body . Items ) ;
53
53
}
54
54
55
55
using ( var server = new MockKubeApiServer ( testOutput , cxt =>
@@ -114,7 +114,7 @@ public void BasicAuth()
114
114
115
115
var listTask = ExecuteListPods ( client ) ;
116
116
Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
117
- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
117
+ Assert . Single ( listTask . Body . Items ) ;
118
118
}
119
119
120
120
{
@@ -224,7 +224,7 @@ public void Cert()
224
224
225
225
Assert . True ( clientCertificateValidationCalled ) ;
226
226
Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
227
- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
227
+ Assert . Single ( listTask . Body . Items ) ;
228
228
}
229
229
230
230
{
@@ -241,7 +241,7 @@ public void Cert()
241
241
242
242
Assert . True ( clientCertificateValidationCalled ) ;
243
243
Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
244
- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
244
+ Assert . Single ( listTask . Body . Items ) ;
245
245
}
246
246
247
247
{
@@ -324,7 +324,7 @@ public void ExternalCertificate()
324
324
var client = new Kubernetes ( clientConfig ) ;
325
325
var listTask = ExecuteListPods ( client ) ;
326
326
Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
327
- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
327
+ Assert . Single ( listTask . Body . Items ) ;
328
328
}
329
329
330
330
{
@@ -368,7 +368,7 @@ public void ExternalToken()
368
368
var client = new Kubernetes ( clientConfig ) ;
369
369
var listTask = ExecuteListPods ( client ) ;
370
370
Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
371
- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
371
+ Assert . Single ( listTask . Body . Items ) ;
372
372
}
373
373
374
374
{
@@ -410,7 +410,7 @@ public void Token()
410
410
411
411
var listTask = ExecuteListPods ( client ) ;
412
412
Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
413
- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
413
+ Assert . Single ( listTask . Body . Items ) ;
414
414
}
415
415
416
416
{
@@ -478,7 +478,7 @@ public void Oidc()
478
478
479
479
var listTask = ExecuteListPods ( client ) ;
480
480
Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
481
- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
481
+ Assert . Single ( listTask . Body . Items ) ;
482
482
}
483
483
484
484
{
@@ -493,7 +493,7 @@ public void Oidc()
493
493
try
494
494
{
495
495
PeelAggregate ( ( ) => ExecuteListPods ( client ) ) ;
496
- Assert . True ( false , "should not be here" ) ;
496
+ Assert . Fail ( "should not be here" ) ;
497
497
}
498
498
catch ( KubernetesClientException e )
499
499
{
@@ -513,7 +513,7 @@ public void Oidc()
513
513
try
514
514
{
515
515
PeelAggregate ( ( ) => ExecuteListPods ( client ) ) ;
516
- Assert . True ( false , "should not be here" ) ;
516
+ Assert . Fail ( "should not be here" ) ;
517
517
}
518
518
catch ( KubernetesClientException e )
519
519
{
@@ -528,7 +528,7 @@ private static void ShouldThrowUnauthorized(Kubernetes client)
528
528
try
529
529
{
530
530
PeelAggregate ( ( ) => ExecuteListPods ( client ) ) ;
531
- Assert . True ( false , "should not be here" ) ;
531
+ Assert . Fail ( "should not be here" ) ;
532
532
}
533
533
catch ( HttpOperationException e )
534
534
{
0 commit comments