@@ -301,14 +301,14 @@ public void DeserializeWithDuplicateKeyChecking_YamlWithDuplicateKeys_ThrowsYaml
301
301
. Build ( ) ;
302
302
303
303
Action act = ( ) => sut . Deserialize < Person > ( yaml ) ;
304
- act . ShouldThrow < YamlException > ( "Because there are duplicate name keys with concrete class" ) ;
304
+ act . Should ( ) . Throw < YamlException > ( "Because there are duplicate name keys with concrete class" ) ;
305
305
act = ( ) => sut . Deserialize < IDictionary < object , object > > ( yaml ) ;
306
- act . ShouldThrow < YamlException > ( "Because there are duplicate name keys with dictionary" ) ;
306
+ act . Should ( ) . Throw < YamlException > ( "Because there are duplicate name keys with dictionary" ) ;
307
307
308
308
var stream = Yaml . ReaderFrom ( "backreference.yaml" ) ;
309
309
var parser = new MergingParser ( new Parser ( stream ) ) ;
310
310
act = ( ) => sut . Deserialize < Dictionary < string , Dictionary < string , string > > > ( parser ) ;
311
- act . ShouldThrow < YamlException > ( "Because there are duplicate name keys with merging parser" ) ;
311
+ act . Should ( ) . Throw < YamlException > ( "Because there are duplicate name keys with merging parser" ) ;
312
312
}
313
313
314
314
[ Fact ]
@@ -325,14 +325,14 @@ public void DeserializeWithoutDuplicateKeyChecking_YamlWithDuplicateKeys_DoesNot
325
325
. Build ( ) ;
326
326
327
327
Action act = ( ) => sut . Deserialize < Person > ( yaml ) ;
328
- act . ShouldNotThrow < YamlException > ( "Because duplicate key checking is not enabled" ) ;
328
+ act . Should ( ) . NotThrow < YamlException > ( "Because duplicate key checking is not enabled" ) ;
329
329
act = ( ) => sut . Deserialize < IDictionary < object , object > > ( yaml ) ;
330
- act . ShouldNotThrow < YamlException > ( "Because duplicate key checking is not enabled" ) ;
330
+ act . Should ( ) . NotThrow < YamlException > ( "Because duplicate key checking is not enabled" ) ;
331
331
332
332
var stream = Yaml . ReaderFrom ( "backreference.yaml" ) ;
333
333
var parser = new MergingParser ( new Parser ( stream ) ) ;
334
334
act = ( ) => sut . Deserialize < Dictionary < string , Dictionary < string , string > > > ( parser ) ;
335
- act . ShouldNotThrow < YamlException > ( "Because duplicate key checking is not enabled" ) ;
335
+ act . Should ( ) . NotThrow < YamlException > ( "Because duplicate key checking is not enabled" ) ;
336
336
}
337
337
338
338
[ Fact ]
0 commit comments