Merge pull request #2400 from esdrubal/extrahead
[mono.git] / mcs / class / System / Test / System.Net / FileWebResponseTest.cs
index 4dc99df157b3769dd982ff2f7697f1ba08cea6b2..bf0a9568084e671388db01e7f41cc196e4eff39c 100644 (file)
@@ -13,6 +13,8 @@ using System.Net;
 
 using NUnit.Framework;
 
+
+
 namespace MonoTests.System.Net
 {
        [TestFixture]
@@ -120,13 +122,10 @@ namespace MonoTests.System.Net
                                Assert.IsNotNull (fsA, "#A1");
                                Assert.IsTrue (fsA.CanRead, "#A2");
                                Assert.IsTrue (fsA.CanSeek, "#A3");
-#if NET_2_0
                                Assert.IsFalse (fsA.CanTimeout, "#A4");
-#endif
                                Assert.IsFalse (fsA.CanWrite, "#A5");
                                Assert.AreEqual (3, fsA.Length, "#A6");
                                Assert.AreEqual (0, fsA.Position, "#A7");
-#if NET_2_0
                                try {
                                        int i = fsA.ReadTimeout;
                                        Assert.Fail ("#A8:" + i);
@@ -137,20 +136,16 @@ namespace MonoTests.System.Net
                                        Assert.Fail ("#A9:" + i);
                                } catch (InvalidOperationException) {
                                }
-#endif
 
                                respB = (FileWebResponse) req.GetResponse ();
                                fsB = respB.GetResponseStream () as FileStream;
                                Assert.IsNotNull (fsB, "#B1");
                                Assert.IsTrue (fsB.CanRead, "#B2");
                                Assert.IsTrue (fsB.CanSeek, "#B3");
-#if NET_2_0
                                Assert.IsFalse (fsB.CanTimeout, "#B4");
-#endif
                                Assert.IsFalse (fsB.CanWrite, "#B5");
                                Assert.AreEqual (3, fsB.Length, "#B6");
                                Assert.AreEqual (0, fsB.Position, "#B7");
-#if NET_2_0
                                try {
                                        int i = fsB.ReadTimeout;
                                        Assert.Fail ("#B8:" + i);
@@ -161,7 +156,6 @@ namespace MonoTests.System.Net
                                        Assert.Fail ("#B9:" + i);
                                } catch (InvalidOperationException) {
                                }
-#endif
                        } finally {
                                if (respA != null)
                                        respA.Close ();
@@ -219,7 +213,6 @@ namespace MonoTests.System.Net
                        }
                        return new Uri ("file:///" + tempFile);
                }
-
                private bool RunningOnUnix {
                        get {
                                // check for Unix platforms - see FAQ for more details