From 746650d1b93114b60feb155c2ee778a9e16ccb6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Fri, 26 Sep 2014 14:43:36 +0200 Subject: [bcl] Remove more NET_2_0 checks from class libs --- .../XmlDsigXsltTransformTest.cs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigXsltTransformTest.cs') diff --git a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigXsltTransformTest.cs b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigXsltTransformTest.cs index 2074c79333b..cc44b12d4c5 100644 --- a/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigXsltTransformTest.cs +++ b/mcs/class/System.Security/Test/System.Security.Cryptography.Xml/XmlDsigXsltTransformTest.cs @@ -117,11 +117,7 @@ namespace MonoTests.System.Security.Cryptography.Xml { [Test] -#if NET_2_0 [ExpectedException (typeof (ArgumentNullException))] -#else - [ExpectedException (typeof (NullReferenceException))] -#endif public void EmptyXslt () { string test = "XmlDsigXsltTransform"; @@ -158,15 +154,10 @@ namespace MonoTests.System.Security.Cryptography.Xml { transform.LoadInnerXml (doc.ChildNodes); Stream s = (Stream) transform.GetOutput (); } -#if NET_2_0 catch (Exception e) { // we must deal with an internal exception result = (e.GetType ().ToString ().EndsWith ("XsltLoadException")); result = true; -#else - catch (XsltCompileException) { - result = true; -#endif } finally { Assert.IsTrue (result, "Exception not thrown"); @@ -174,11 +165,7 @@ namespace MonoTests.System.Security.Cryptography.Xml { } [Test] -#if NET_2_0 [ExpectedException (typeof (ArgumentNullException))] -#else - [ExpectedException (typeof (NullReferenceException))] -#endif public void OnlyInner () { string test = ""; -- cgit v1.2.3