@@ -36,7 +36,7 @@ public void First_WhenGroupDoesNotExist_ShouldThrow()
3636
3737 Action action = ( ) => groupedCollection . First ( "I do not exist" ) ;
3838
39- action . Should ( ) . Throw < InvalidOperationException > ( ) ;
39+ action . Should ( ) . ThrowExactly < InvalidOperationException > ( ) ;
4040 }
4141
4242 [ TestCategory ( "Collections" ) ]
@@ -92,7 +92,7 @@ public void ElementAt_WhenGroupExistsAndIndexOutOfRange_ShouldReturnThrow(int in
9292
9393 Action action = ( ) => groupedCollection . ElementAt ( "B" , index ) ;
9494
95- action . Should ( ) . Throw < ArgumentException > ( ) ;
95+ action . Should ( ) . ThrowExactly < ArgumentException > ( ) ;
9696 }
9797
9898 [ TestCategory ( "Collections" ) ]
@@ -104,7 +104,7 @@ public void ElementAt_WhenGroupDoesNotExist_ShouldThrow()
104104
105105 Action action = ( ) => groupedCollection . ElementAt ( "I do not exist" , 0 ) ;
106106
107- action . Should ( ) . Throw < InvalidOperationException > ( ) ;
107+ action . Should ( ) . ThrowExactly < InvalidOperationException > ( ) ;
108108 }
109109
110110 [ TestCategory ( "Collections" ) ]
@@ -291,7 +291,7 @@ public void InsertItem_WhenGroupDoesNotExist_ShouldThrow()
291291
292292 Action action = ( ) => groupedCollection . InsertItem ( "I do not exist" , 0 , 23 ) ;
293293
294- action . Should ( ) . Throw < InvalidOperationException > ( ) ;
294+ action . Should ( ) . ThrowExactly < InvalidOperationException > ( ) ;
295295 }
296296
297297 [ TestCategory ( "Collections" ) ]
@@ -305,7 +305,7 @@ public void InsertItem_WhenIndexOutOfRange_ShouldThrow(int index)
305305
306306 Action action = ( ) => groupedCollection . InsertItem ( "A" , index , 23 ) ;
307307
308- action . Should ( ) . Throw < ArgumentOutOfRangeException > ( ) ;
308+ action . Should ( ) . ThrowExactly < ArgumentOutOfRangeException > ( ) ;
309309 }
310310
311311 [ TestCategory ( "Collections" ) ]
@@ -347,7 +347,7 @@ public void SetItem_WhenGroupDoesNotExist_ShouldThrow()
347347
348348 Action action = ( ) => groupedCollection . SetItem ( "I do not exist" , 0 , 23 ) ;
349349
350- action . Should ( ) . Throw < InvalidOperationException > ( ) ;
350+ action . Should ( ) . ThrowExactly < InvalidOperationException > ( ) ;
351351 }
352352
353353 [ TestCategory ( "Collections" ) ]
@@ -361,7 +361,7 @@ public void SetItem_WhenIndexOutOfRange_ShouldThrow(int index)
361361
362362 Action action = ( ) => groupedCollection . SetItem ( "A" , index , 23 ) ;
363363
364- action . Should ( ) . Throw < ArgumentOutOfRangeException > ( ) ;
364+ action . Should ( ) . ThrowExactly < ArgumentOutOfRangeException > ( ) ;
365365 }
366366
367367 [ TestCategory ( "Collections" ) ]
0 commit comments