[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / System / Test / System.Collections.Specialized / StringDictionaryTest.cs
index 3e17e08b2637d639d6864028f6e737ca647a1882..a618efb23fec74bce4a147ac3c66ac82593450c9 100644 (file)
@@ -57,11 +57,7 @@ namespace MonoTests.System.Collections.Specialized {
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (ArgumentNullException))]
-#else
-               [ExpectedException (typeof (NullReferenceException))]
-#endif
                public void This_Null ()
                {
                        StringDictionary sd = new StringDictionary ();
@@ -100,11 +96,7 @@ namespace MonoTests.System.Collections.Specialized {
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (ArgumentNullException))]
-#else
-               [ExpectedException (typeof (NullReferenceException))]
-#endif
                public void Add_NullKey ()
                {
                        StringDictionary sd = new StringDictionary ();
@@ -112,11 +104,7 @@ namespace MonoTests.System.Collections.Specialized {
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (ArgumentNullException))]
-#else
-               [ExpectedException (typeof (NullReferenceException))]
-#endif
                public void ContainsKey_Null ()
                {
                        StringDictionary sd = new StringDictionary ();
@@ -124,11 +112,7 @@ namespace MonoTests.System.Collections.Specialized {
                }
 
                [Test]
-#if NET_2_0
                [ExpectedException (typeof (ArgumentNullException))]
-#else
-               [ExpectedException (typeof (NullReferenceException))]
-#endif
                public void Remove_Null ()
                {
                        StringDictionary sd = new StringDictionary ();