@@ -16,7 +16,7 @@ public abstract class AbstractSetTest
1616 public void TestUnionWith ( )
1717 {
1818 ISet < int > set = CreateSet < int > ( ) ;
19- Assert . Throws < ArgumentNullException > ( ( ) => set . UnionWith ( null ) ) ;
19+ Assert . Throws < ArgumentNullException > ( ( ) => set . UnionWith ( null ! ) ) ;
2020
2121 set . UnionWith ( TransformEnumerableForSetOperation ( Enumerable . Range ( 0 , 7 ) ) ) ;
2222 set . UnionWith ( TransformEnumerableForSetOperation ( Enumerable . Range ( 5 , 5 ) ) ) ;
@@ -27,7 +27,7 @@ public void TestUnionWith()
2727 public void TestExceptWith ( )
2828 {
2929 ISet < int > set = CreateSet < int > ( ) ;
30- Assert . Throws < ArgumentNullException > ( ( ) => set . ExceptWith ( null ) ) ;
30+ Assert . Throws < ArgumentNullException > ( ( ) => set . ExceptWith ( null ! ) ) ;
3131
3232 // Return without iterating if the set is already empty
3333 set . ExceptWith ( EverythingThrowsEnumerable < int > . Instance ) ;
@@ -49,7 +49,7 @@ public void TestExceptWith()
4949 public void TestIntersectWith ( )
5050 {
5151 ISet < int > set = CreateSet < int > ( ) ;
52- Assert . Throws < ArgumentNullException > ( ( ) => set . IntersectWith ( null ) ) ;
52+ Assert . Throws < ArgumentNullException > ( ( ) => set . IntersectWith ( null ! ) ) ;
5353
5454 // Return without iterating if the set is already empty
5555 set . IntersectWith ( EverythingThrowsEnumerable < int > . Instance ) ;
@@ -76,7 +76,7 @@ public void TestSymmetricExceptWith()
7676 {
7777 ISet < int > set = CreateSet < int > ( ) ;
7878 ISet < int > second = CreateSet < int > ( ) ;
79- Assert . Throws < ArgumentNullException > ( ( ) => set . SymmetricExceptWith ( null ) ) ;
79+ Assert . Throws < ArgumentNullException > ( ( ) => set . SymmetricExceptWith ( null ! ) ) ;
8080
8181 // Test behavior when the current set is empty
8282 set . SymmetricExceptWith ( TransformEnumerableForSetOperation ( new [ ] { 1 , 5 , 3 } ) ) ;
@@ -110,7 +110,7 @@ public void TestSymmetricExceptWith()
110110 public void TestIsProperSubsetOf ( )
111111 {
112112 ISet < int > set = CreateSet < int > ( ) ;
113- Assert . Throws < ArgumentNullException > ( ( ) => set . IsProperSubsetOf ( null ) ) ;
113+ Assert . Throws < ArgumentNullException > ( ( ) => set . IsProperSubsetOf ( null ! ) ) ;
114114
115115 // Test behavior when the current set is empty
116116 Assert . False ( set . IsProperSubsetOf ( TransformEnumerableForSetOperation ( Enumerable . Empty < int > ( ) ) ) ) ;
@@ -145,7 +145,7 @@ public void TestIsProperSubsetOf()
145145 public void TestIsProperSupersetOf ( )
146146 {
147147 ISet < int > set = CreateSet < int > ( ) ;
148- Assert . Throws < ArgumentNullException > ( ( ) => set . IsProperSupersetOf ( null ) ) ;
148+ Assert . Throws < ArgumentNullException > ( ( ) => set . IsProperSupersetOf ( null ! ) ) ;
149149
150150 // Return without iterating if the set is already empty
151151 Assert . False ( set . IsProperSupersetOf ( EverythingThrowsEnumerable < int > . Instance ) ) ;
@@ -183,7 +183,7 @@ public void TestIsProperSupersetOf()
183183 public void TestIsSubsetOf ( )
184184 {
185185 ISet < int > set = CreateSet < int > ( ) ;
186- Assert . Throws < ArgumentNullException > ( ( ) => set . IsSubsetOf ( null ) ) ;
186+ Assert . Throws < ArgumentNullException > ( ( ) => set . IsSubsetOf ( null ! ) ) ;
187187
188188 // Return without iterating if the set is already empty
189189 Assert . True ( set . IsSubsetOf ( EverythingThrowsEnumerable < int > . Instance ) ) ;
@@ -217,7 +217,7 @@ public void TestIsSubsetOf()
217217 public void TestIsSupersetOf ( )
218218 {
219219 ISet < int > set = CreateSet < int > ( ) ;
220- Assert . Throws < ArgumentNullException > ( ( ) => set . IsSupersetOf ( null ) ) ;
220+ Assert . Throws < ArgumentNullException > ( ( ) => set . IsSupersetOf ( null ! ) ) ;
221221
222222 // Test IsSupersetOf self
223223 set . Add ( 1 ) ;
@@ -252,7 +252,7 @@ public void TestIsSupersetOf()
252252 public void TestOverlaps ( )
253253 {
254254 ISet < int > set = CreateSet < int > ( ) ;
255- Assert . Throws < ArgumentNullException > ( ( ) => set . Overlaps ( null ) ) ;
255+ Assert . Throws < ArgumentNullException > ( ( ) => set . Overlaps ( null ! ) ) ;
256256
257257 // Return without iterating if the set is already empty
258258 Assert . False ( set . Overlaps ( EverythingThrowsEnumerable < int > . Instance ) ) ;
@@ -272,7 +272,7 @@ public void TestOverlaps()
272272 public void TestSetEquals ( )
273273 {
274274 ISet < int > set = CreateSet < int > ( ) ;
275- Assert . Throws < ArgumentNullException > ( ( ) => set . SetEquals ( null ) ) ;
275+ Assert . Throws < ArgumentNullException > ( ( ) => set . SetEquals ( null ! ) ) ;
276276
277277 // Test behavior when the current set is empty
278278 Assert . True ( set . SetEquals ( TransformEnumerableForSetOperation ( Enumerable . Empty < int > ( ) ) ) ) ;
@@ -341,7 +341,7 @@ protected static void TestICollectionInterfaceImpl(ICollection collection, bool
341341 {
342342 var copy = new object [ collection . Count ] ;
343343
344- Assert . Throws < ArgumentNullException > ( ( ) => collection . CopyTo ( null , 0 ) ) ;
344+ Assert . Throws < ArgumentNullException > ( ( ) => collection . CopyTo ( null ! , 0 ) ) ;
345345 Assert . Throws < ArgumentException > ( ( ) => collection . CopyTo ( new object [ 1 , collection . Count ] , 0 ) ) ;
346346 Assert . Throws < ArgumentException > ( ( ) => collection . CopyTo ( Array . CreateInstance ( typeof ( object ) , lengths : new [ ] { collection . Count } , lowerBounds : new [ ] { - 1 } ) , 0 ) ) ;
347347 Assert . Throws < ArgumentOutOfRangeException > ( ( ) => collection . CopyTo ( copy , - 1 ) ) ;
@@ -368,7 +368,7 @@ protected static void TestICollectionInterfaceImpl(ICollection collection, bool
368368 {
369369 var copy = new int [ collection . Count ] ;
370370
371- Assert . Throws < ArgumentNullException > ( ( ) => collection . CopyTo ( null , 0 ) ) ;
371+ Assert . Throws < ArgumentNullException > ( ( ) => collection . CopyTo ( null ! , 0 ) ) ;
372372 Assert . Throws < ArgumentException > ( ( ) => collection . CopyTo ( new int [ 1 , collection . Count ] , 0 ) ) ;
373373 Assert . Throws < ArgumentException > ( ( ) => collection . CopyTo ( Array . CreateInstance ( typeof ( int ) , lengths : new [ ] { collection . Count } , lowerBounds : new [ ] { - 1 } ) , 0 ) ) ;
374374 Assert . Throws < ArgumentOutOfRangeException > ( ( ) => collection . CopyTo ( copy , - 1 ) ) ;
0 commit comments