diff options
Diffstat (limited to 'mcs/class/System/Test/System.Net/HttpWebResponseTest.cs')
-rw-r--r-- | mcs/class/System/Test/System.Net/HttpWebResponseTest.cs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/mcs/class/System/Test/System.Net/HttpWebResponseTest.cs b/mcs/class/System/Test/System.Net/HttpWebResponseTest.cs index 5866c34bbcc..c62c888f24b 100644 --- a/mcs/class/System/Test/System.Net/HttpWebResponseTest.cs +++ b/mcs/class/System/Test/System.Net/HttpWebResponseTest.cs @@ -272,7 +272,6 @@ namespace MonoTests.System.Net HttpWebResponse resp = (HttpWebResponse) req.GetResponse (); ((IDisposable) resp).Dispose (); -#if NET_2_0 WebHeaderCollection headers = resp.Headers; Assert.AreEqual (6, headers.Count, "#1"); Assert.AreEqual ("9", headers ["Content-Length"], "#2"); @@ -281,17 +280,6 @@ namespace MonoTests.System.Net Assert.AreEqual ("Wed, 08 Jan 2003 23:11:55 GMT", headers ["Last-Modified"], "#5"); Assert.AreEqual ("UserID=Miguel,StoreProfile=true", headers ["Set-Cookie"], "#6"); Assert.AreEqual ("Mono/Test", headers ["Server"], "#7"); -#else - try { - WebHeaderCollection headers = resp.Headers; - Assert.Fail ("#1:" + headers); - } catch (ObjectDisposedException ex) { - Assert.AreEqual (typeof (ObjectDisposedException), ex.GetType (), "#2"); - Assert.IsNull (ex.InnerException, "#3"); - Assert.IsNotNull (ex.Message, "#4"); - Assert.AreEqual (typeof (HttpWebResponse).FullName, ex.ObjectName, "#5"); - } -#endif } } @@ -664,7 +652,6 @@ namespace MonoTests.System.Net } } -#if NET_2_0 [Test] // bug #324182 public void CanTimeout () { @@ -693,7 +680,6 @@ namespace MonoTests.System.Net } } } -#endif [Test] public void CanWrite () @@ -1088,7 +1074,6 @@ namespace MonoTests.System.Net } } -#if NET_2_0 [Test] public void ReadTimeout () { @@ -1117,7 +1102,6 @@ namespace MonoTests.System.Net } } } -#endif [Test] public void Write () @@ -1153,7 +1137,6 @@ namespace MonoTests.System.Net } } -#if NET_2_0 [Test] public void WriteTimeout () { @@ -1182,6 +1165,5 @@ namespace MonoTests.System.Net } } } -#endif } } |