@@ -49,7 +49,7 @@ public void Anonymous()
4949 var listTask = ExecuteListPods ( client ) ;
5050
5151 Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
52- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
52+ Assert . Single ( listTask . Body . Items ) ;
5353 }
5454
5555 using ( var server = new MockKubeApiServer ( testOutput , cxt =>
@@ -114,7 +114,7 @@ public void BasicAuth()
114114
115115 var listTask = ExecuteListPods ( client ) ;
116116 Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
117- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
117+ Assert . Single ( listTask . Body . Items ) ;
118118 }
119119
120120 {
@@ -224,7 +224,7 @@ public void Cert()
224224
225225 Assert . True ( clientCertificateValidationCalled ) ;
226226 Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
227- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
227+ Assert . Single ( listTask . Body . Items ) ;
228228 }
229229
230230 {
@@ -241,7 +241,7 @@ public void Cert()
241241
242242 Assert . True ( clientCertificateValidationCalled ) ;
243243 Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
244- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
244+ Assert . Single ( listTask . Body . Items ) ;
245245 }
246246
247247 {
@@ -324,7 +324,7 @@ public void ExternalCertificate()
324324 var client = new Kubernetes ( clientConfig ) ;
325325 var listTask = ExecuteListPods ( client ) ;
326326 Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
327- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
327+ Assert . Single ( listTask . Body . Items ) ;
328328 }
329329
330330 {
@@ -368,7 +368,7 @@ public void ExternalToken()
368368 var client = new Kubernetes ( clientConfig ) ;
369369 var listTask = ExecuteListPods ( client ) ;
370370 Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
371- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
371+ Assert . Single ( listTask . Body . Items ) ;
372372 }
373373
374374 {
@@ -410,7 +410,7 @@ public void Token()
410410
411411 var listTask = ExecuteListPods ( client ) ;
412412 Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
413- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
413+ Assert . Single ( listTask . Body . Items ) ;
414414 }
415415
416416 {
@@ -478,7 +478,7 @@ public void Oidc()
478478
479479 var listTask = ExecuteListPods ( client ) ;
480480 Assert . True ( listTask . Response . IsSuccessStatusCode ) ;
481- Assert . Equal ( 1 , listTask . Body . Items . Count ) ;
481+ Assert . Single ( listTask . Body . Items ) ;
482482 }
483483
484484 {
@@ -493,7 +493,7 @@ public void Oidc()
493493 try
494494 {
495495 PeelAggregate ( ( ) => ExecuteListPods ( client ) ) ;
496- Assert . True ( false , "should not be here" ) ;
496+ Assert . Fail ( "should not be here" ) ;
497497 }
498498 catch ( KubernetesClientException e )
499499 {
@@ -513,7 +513,7 @@ public void Oidc()
513513 try
514514 {
515515 PeelAggregate ( ( ) => ExecuteListPods ( client ) ) ;
516- Assert . True ( false , "should not be here" ) ;
516+ Assert . Fail ( "should not be here" ) ;
517517 }
518518 catch ( KubernetesClientException e )
519519 {
@@ -528,7 +528,7 @@ private static void ShouldThrowUnauthorized(Kubernetes client)
528528 try
529529 {
530530 PeelAggregate ( ( ) => ExecuteListPods ( client ) ) ;
531- Assert . True ( false , "should not be here" ) ;
531+ Assert . Fail ( "should not be here" ) ;
532532 }
533533 catch ( HttpOperationException e )
534534 {
0 commit comments