@@ -99,7 +99,7 @@ public void BeJsonSerializableInto_StringPropertyValueDifferent()
9999 } ) ;
100100 } ;
101101
102- act . Should ( ) . ThrowExactly < XunitException > ( )
102+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
103103 . WithMessage ( "$.string_property: Expected 'Expected value' instead of 'Actual value'." ) ;
104104 }
105105
@@ -121,7 +121,7 @@ public void BeJsonSerializableInto_Int32PropertyValueDifferent()
121121 } ) ;
122122 } ;
123123
124- act . Should ( ) . ThrowExactly < XunitException > ( )
124+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
125125 . WithMessage ( "$.int32_property: Expected '100' instead of '1234'." ) ;
126126 }
127127
@@ -147,7 +147,7 @@ public void BeJsonSerializableInto_BooleanPropertyValueDifferent(bool value, str
147147 } ) ;
148148 } ;
149149
150- act . Should ( ) . ThrowExactly < XunitException > ( )
150+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
151151 . WithMessage ( $ "$.boolean_property: Expected '{ expectedValueString } ' instead of '{ actualValueString } '.") ;
152152 }
153153
@@ -173,7 +173,7 @@ public void BeJsonSerializableInto_NullPropertyValueDifferent()
173173 } ) ;
174174 } ;
175175
176- act . Should ( ) . ThrowExactly < XunitException > ( )
176+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
177177 . WithMessage ( "$.null_property: Expected property to be 'String' type instead of 'Null' type." ) ;
178178 }
179179
@@ -207,7 +207,7 @@ public void BeJsonSerializableInto_InnerObjectDifferentValue()
207207 } ) ;
208208 } ;
209209
210- act . Should ( ) . ThrowExactly < XunitException > ( )
210+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
211211 . WithMessage ( "$.inner_object.inner_string_property: Expected 'Other inner string value' instead of 'Inner string value'." ) ;
212212 }
213213
@@ -251,7 +251,7 @@ public void BeJsonSerializableInto_CollectionDifferentItemValue()
251251 } ) ;
252252 } ;
253253
254- act . Should ( ) . ThrowExactly < XunitException > ( )
254+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
255255 . WithMessage ( "$.collection_int[1]: Expected '1234' instead of '20'." ) ;
256256 }
257257
@@ -294,7 +294,7 @@ public void BeJsonSerializableInto_CollectionMissingItemDotNetClass()
294294 } ) ;
295295 } ;
296296
297- act . Should ( ) . ThrowExactly < XunitException > ( )
297+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
298298 . WithMessage ( "$.collection_int: Expected 2 item(s) but found 1." ) ;
299299 }
300300
@@ -337,7 +337,7 @@ public void BeJsonSerializableInto_CollectionMissingItemJson()
337337 } ) ;
338338 } ;
339339
340- act . Should ( ) . ThrowExactly < XunitException > ( )
340+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
341341 . WithMessage ( "$.collection_int: Expected 1 item(s) but found 2." ) ;
342342 }
343343
@@ -357,7 +357,7 @@ public void BeJsonSerializableInto_PropertyTypeDifferent_String()
357357 } ) ;
358358 } ;
359359
360- act . Should ( ) . ThrowExactly < XunitException > ( )
360+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
361361 . WithMessage ( "$.string_property: Expected property to be 'Object' type instead of 'String' type." ) ;
362362 }
363363
@@ -381,7 +381,7 @@ public void BeJsonSerializableInto_PropertyTypeDifferent_Number(object expectedV
381381 } ) ;
382382 } ;
383383
384- act . Should ( ) . ThrowExactly < XunitException > ( )
384+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
385385 . WithMessage ( $ "$.int32_property: Expected property to be '{ expectedTypeMessage } ' type instead of 'Number' type.") ;
386386 }
387387
@@ -407,7 +407,7 @@ public void BeJsonSerializableInto_PropertyTypeDifferent_Boolean(bool value, str
407407 } ) ;
408408 } ;
409409
410- act . Should ( ) . ThrowExactly < XunitException > ( )
410+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
411411 . WithMessage ( $ "$.boolean_property: Expected property to be 'Object' type instead of '{ insteadOfMessageString } ' type.") ;
412412 }
413413
@@ -441,7 +441,7 @@ public void BeJsonSerializableInto_PropertyTypeDifferent_Object(object value, st
441441 } ) ;
442442 } ;
443443
444- act . Should ( ) . ThrowExactly < XunitException > ( )
444+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
445445 . WithMessage ( $ "$.inner_object: Expected property to be '{ expectedKindMessage } ' type instead of 'Object' type.") ;
446446 }
447447
@@ -477,7 +477,7 @@ public void BeJsonSerializableInto_PropertyTypeDifferent_Array(object value, str
477477 } ) ;
478478 } ;
479479
480- act . Should ( ) . ThrowExactly < XunitException > ( )
480+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
481481 . WithMessage ( $ "$.collection_int: Expected property to be '{ expectedKindMessage } ' type instead of 'Array' type.") ;
482482 }
483483
@@ -497,7 +497,7 @@ public void BeJsonSerializableInto_PropertyNameDifferent()
497497 } ) ;
498498 } ;
499499
500- act . Should ( ) . ThrowExactly < XunitException > ( )
500+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
501501 . WithMessage ( "$: Expected property with the 'string_property_other_name' name but found 'string_property' instead." ) ;
502502 }
503503
@@ -518,7 +518,7 @@ public void BeJsonSerializableInto_DotNetPropertyMissing()
518518 } ) ;
519519 } ;
520520
521- act . Should ( ) . ThrowExactly < XunitException > ( )
521+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
522522 . WithMessage ( "$: Expected 'new_property' property but found no property." ) ;
523523 }
524524
@@ -537,7 +537,7 @@ public void BeJsonSerializableInto_JsonPropertyMissing()
537537 } ) ;
538538 } ;
539539
540- act . Should ( ) . ThrowExactly < XunitException > ( )
540+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
541541 . WithMessage ( "$: Expected no property but found 'inner_string_property' property." ) ;
542542 }
543543
@@ -551,7 +551,7 @@ public void BeJsonSerializableInto_NullSubject()
551551 json . Should ( ) . BeJsonSerializableInto ( new { } ) ;
552552 } ;
553553
554- act . Should ( ) . ThrowExactly < XunitException > ( )
554+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
555555 . WithMessage ( "A JSON object was expected." ) ;
556556 }
557557
@@ -1221,7 +1221,7 @@ public void BeJsonDeserializableInto_WithObjectProperty_Number_Different(object
12211221 } ) ;
12221222 } ;
12231223
1224- act . Should ( ) . ThrowExactly < XunitException > ( )
1224+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
12251225 . WithMessage ( $ "$.inner.object_property: Expected '8888' instead of '{ value } '.") ;
12261226 }
12271227
@@ -1249,7 +1249,7 @@ public void BeJsonDeserializableInto_WithObjectProperty_Number_WrongType(object
12491249 } ) ;
12501250 } ;
12511251
1252- act . Should ( ) . ThrowExactly < XunitException > ( )
1252+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
12531253 . WithMessage ( $ "$.inner.object_property: Expected property to be 'String' type instead of 'Number' type.") ;
12541254 }
12551255
@@ -1275,7 +1275,7 @@ public void BeJsonDeserializableInto_WithObjectProperty_String_Different()
12751275 } ) ;
12761276 } ;
12771277
1278- act . Should ( ) . ThrowExactly < XunitException > ( )
1278+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
12791279 . WithMessage ( "$.inner.object_property: Expected 'The expected string' instead of 'The actual string'." ) ;
12801280 }
12811281
@@ -1301,7 +1301,7 @@ public void BeJsonDeserializableInto_WithObjectProperty_String_WrongType()
13011301 } ) ;
13021302 } ;
13031303
1304- act . Should ( ) . ThrowExactly < XunitException > ( )
1304+ act . Should ( ) . ThrowExactly < JsonAssertionFailedException > ( )
13051305 . WithMessage ( "$.inner.object_property: Expected property to be 'Number' type instead of 'String' type." ) ;
13061306 }
13071307
0 commit comments