@@ -60,7 +60,7 @@ public async Task Cannot_exceed_length_constraint(string firstName)
6060
6161 // Assert
6262 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
63- document . Errors . ShouldHaveCount ( 1 ) ;
63+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
6464
6565 ErrorObject errorObject = document . Errors . First ( ) ;
6666 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -98,7 +98,7 @@ public async Task Cannot_exceed_string_length_constraint(string userName)
9898
9999 // Assert
100100 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
101- document . Errors . ShouldHaveCount ( 1 ) ;
101+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
102102
103103 ErrorObject errorObject = document . Errors . First ( ) ;
104104 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -134,7 +134,7 @@ public async Task Cannot_violate_regular_expression_constraint()
134134
135135 // Assert
136136 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
137- document . Errors . ShouldHaveCount ( 1 ) ;
137+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
138138
139139 ErrorObject errorObject = document . Errors . First ( ) ;
140140 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -170,7 +170,7 @@ public async Task Cannot_use_invalid_credit_card_number()
170170
171171 // Assert
172172 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
173- document . Errors . ShouldHaveCount ( 1 ) ;
173+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
174174
175175 ErrorObject errorObject = document . Errors . First ( ) ;
176176 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -206,7 +206,7 @@ public async Task Cannot_use_invalid_email_address()
206206
207207 // Assert
208208 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
209- document . Errors . ShouldHaveCount ( 1 ) ;
209+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
210210
211211 ErrorObject errorObject = document . Errors . First ( ) ;
212212 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -243,7 +243,7 @@ public async Task Cannot_exceed_min_length_constraint()
243243
244244 // Assert
245245 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
246- document . Errors . ShouldHaveCount ( 1 ) ;
246+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
247247
248248 const int minCharsInBase64 = SocialMediaAccount . MinPasswordCharsInBase64 ;
249249
@@ -281,7 +281,7 @@ public async Task Cannot_exceed_max_length_constraint()
281281
282282 // Assert
283283 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
284- document . Errors . ShouldHaveCount ( 1 ) ;
284+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
285285
286286 const int maxCharsInBase64 = SocialMediaAccount . MaxPasswordCharsInBase64 ;
287287
@@ -319,7 +319,7 @@ public async Task Cannot_use_invalid_base64()
319319
320320 // Assert
321321 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
322- document . Errors . ShouldHaveCount ( 1 ) ;
322+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
323323
324324 ErrorObject errorObject = document . Errors . First ( ) ;
325325 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -359,7 +359,7 @@ public async Task Cannot_use_double_outside_of_valid_range(double age)
359359
360360 // Assert
361361 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
362- document . Errors . ShouldHaveCount ( 1 ) ;
362+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
363363
364364 ErrorObject errorObject = document . Errors . First ( ) ;
365365 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -395,7 +395,7 @@ public async Task Cannot_use_relative_url()
395395
396396 // Assert
397397 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
398- document . Errors . ShouldHaveCount ( 1 ) ;
398+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
399399
400400 ErrorObject errorObject = document . Errors . First ( ) ;
401401 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -433,7 +433,7 @@ public async Task Cannot_exceed_collection_length_constraint(int length)
433433
434434 // Assert
435435 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
436- document . Errors . ShouldHaveCount ( 1 ) ;
436+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
437437
438438 ErrorObject errorObject = document . Errors . First ( ) ;
439439 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -469,7 +469,7 @@ public async Task Cannot_use_non_allowed_value()
469469
470470 // Assert
471471 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
472- document . Errors . ShouldHaveCount ( 1 ) ;
472+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
473473
474474 ErrorObject errorObject = document . Errors . First ( ) ;
475475 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -505,7 +505,7 @@ public async Task Cannot_use_denied_value()
505505
506506 // Assert
507507 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
508- document . Errors . ShouldHaveCount ( 1 ) ;
508+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
509509
510510 ErrorObject errorObject = document . Errors . First ( ) ;
511511 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
@@ -541,7 +541,7 @@ public async Task Cannot_use_TimeSpan_outside_of_valid_range()
541541
542542 // Assert
543543 ErrorResponseDocument document = ( await action . Should ( ) . ThrowExactlyAsync < ErrorResponseDocument > ( ) ) . Which ;
544- document . Errors . ShouldHaveCount ( 1 ) ;
544+ document . Errors . Should ( ) . HaveCount ( 1 ) ;
545545
546546 ErrorObject errorObject = document . Errors . First ( ) ;
547547 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
0 commit comments