@@ -65,7 +65,7 @@ public async Task Cannot_exceed_length_constraint(string firstName)
6565 ErrorObject errorObject = document . Errors . First ( ) ;
6666 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
6767 errorObject . Detail . Should ( ) . Be ( "The field FirstName must be a string or collection type with a minimum length of '2' and maximum length of '20'." ) ;
68- errorObject . Source . ShouldNotBeNull ( ) ;
68+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
6969 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/firstName" ) ;
7070 }
7171
@@ -103,7 +103,7 @@ public async Task Cannot_exceed_string_length_constraint(string userName)
103103 ErrorObject errorObject = document . Errors . First ( ) ;
104104 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
105105 errorObject . Detail . Should ( ) . Be ( "The field UserName must be a string with a minimum length of 3 and a maximum length of 18." ) ;
106- errorObject . Source . ShouldNotBeNull ( ) ;
106+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
107107 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/userName" ) ;
108108 }
109109
@@ -139,7 +139,7 @@ public async Task Cannot_violate_regular_expression_constraint()
139139 ErrorObject errorObject = document . Errors . First ( ) ;
140140 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
141141 errorObject . Detail . Should ( ) . Be ( "Only letters are allowed." ) ;
142- errorObject . Source . ShouldNotBeNull ( ) ;
142+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
143143 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/userName" ) ;
144144 }
145145
@@ -175,7 +175,7 @@ public async Task Cannot_use_invalid_credit_card_number()
175175 ErrorObject errorObject = document . Errors . First ( ) ;
176176 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
177177 errorObject . Detail . Should ( ) . Be ( "The CreditCard field is not a valid credit card number." ) ;
178- errorObject . Source . ShouldNotBeNull ( ) ;
178+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
179179 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/creditCard" ) ;
180180 }
181181
@@ -211,7 +211,7 @@ public async Task Cannot_use_invalid_email_address()
211211 ErrorObject errorObject = document . Errors . First ( ) ;
212212 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
213213 errorObject . Detail . Should ( ) . Be ( "The Email field is not a valid e-mail address." ) ;
214- errorObject . Source . ShouldNotBeNull ( ) ;
214+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
215215 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/email" ) ;
216216 }
217217
@@ -250,7 +250,7 @@ public async Task Cannot_exceed_min_length_constraint()
250250 ErrorObject errorObject = document . Errors . First ( ) ;
251251 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
252252 errorObject . Detail . Should ( ) . Be ( $ "The field Password must be a string or array type with a minimum length of '{ minCharsInBase64 } '.") ;
253- errorObject . Source . ShouldNotBeNull ( ) ;
253+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
254254 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/password" ) ;
255255 }
256256
@@ -288,7 +288,7 @@ public async Task Cannot_exceed_max_length_constraint()
288288 ErrorObject errorObject = document . Errors . First ( ) ;
289289 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
290290 errorObject . Detail . Should ( ) . Be ( $ "The field Password must be a string or array type with a maximum length of '{ maxCharsInBase64 } '.") ;
291- errorObject . Source . ShouldNotBeNull ( ) ;
291+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
292292 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/password" ) ;
293293 }
294294
@@ -324,7 +324,7 @@ public async Task Cannot_use_invalid_base64()
324324 ErrorObject errorObject = document . Errors . First ( ) ;
325325 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
326326 errorObject . Detail . Should ( ) . Be ( "The Password field is not a valid Base64 encoding." ) ;
327- errorObject . Source . ShouldNotBeNull ( ) ;
327+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
328328 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/password" ) ;
329329 }
330330
@@ -364,7 +364,7 @@ public async Task Cannot_use_double_outside_of_valid_range(double age)
364364 ErrorObject errorObject = document . Errors . First ( ) ;
365365 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
366366 errorObject . Detail . Should ( ) . Be ( $ "The field Age must be between { 0.1 } exclusive and { 122.9 } exclusive.") ;
367- errorObject . Source . ShouldNotBeNull ( ) ;
367+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
368368 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/age" ) ;
369369 }
370370
@@ -400,7 +400,7 @@ public async Task Cannot_use_relative_url()
400400 ErrorObject errorObject = document . Errors . First ( ) ;
401401 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
402402 errorObject . Detail . Should ( ) . Be ( "The BackgroundPicture field is not a valid fully-qualified http, https, or ftp URL." ) ;
403- errorObject . Source . ShouldNotBeNull ( ) ;
403+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
404404 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/backgroundPicture" ) ;
405405 }
406406
@@ -438,7 +438,7 @@ public async Task Cannot_exceed_collection_length_constraint(int length)
438438 ErrorObject errorObject = document . Errors . First ( ) ;
439439 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
440440 errorObject . Detail . Should ( ) . Be ( "The field Tags must be a string or collection type with a minimum length of '1' and maximum length of '10'." ) ;
441- errorObject . Source . ShouldNotBeNull ( ) ;
441+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
442442 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/tags" ) ;
443443 }
444444
@@ -474,7 +474,7 @@ public async Task Cannot_use_non_allowed_value()
474474 ErrorObject errorObject = document . Errors . First ( ) ;
475475 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
476476 errorObject . Detail . Should ( ) . Be ( "The CountryCode field does not equal any of the values specified in AllowedValuesAttribute." ) ;
477- errorObject . Source . ShouldNotBeNull ( ) ;
477+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
478478 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/countryCode" ) ;
479479 }
480480
@@ -510,7 +510,7 @@ public async Task Cannot_use_denied_value()
510510 ErrorObject errorObject = document . Errors . First ( ) ;
511511 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
512512 errorObject . Detail . Should ( ) . Be ( "The Planet field equals one of the values specified in DeniedValuesAttribute." ) ;
513- errorObject . Source . ShouldNotBeNull ( ) ;
513+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
514514 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/planet" ) ;
515515 }
516516
@@ -546,7 +546,7 @@ public async Task Cannot_use_TimeSpan_outside_of_valid_range()
546546 ErrorObject errorObject = document . Errors . First ( ) ;
547547 errorObject . Title . Should ( ) . Be ( "Input validation failed." ) ;
548548 errorObject . Detail . Should ( ) . Be ( "The field NextRevalidation must be between 01:00:00 and 05:00:00." ) ;
549- errorObject . Source . ShouldNotBeNull ( ) ;
549+ errorObject . Source . Should ( ) . NotBeNull ( ) ;
550550 errorObject . Source . Pointer . Should ( ) . Be ( "/data/attributes/nextRevalidation" ) ;
551551 }
552552
0 commit comments