X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FTest%2FSystem.Net%2FHttpListenerRequestTest.cs;h=d782103f33e33709321e1c7f2211d2b4fccf8a90;hb=2c48afbc63c9ff04f4b188f9c471c15a8aa2b287;hp=c9227fd5b39dc09c6ce53f618c084c05d56b6b7f;hpb=7f51d473ef1a8bcb08ba488cb35500445a501b39;p=mono.git diff --git a/mcs/class/System/Test/System.Net/HttpListenerRequestTest.cs b/mcs/class/System/Test/System.Net/HttpListenerRequestTest.cs index c9227fd5b39..d782103f33e 100644 --- a/mcs/class/System/Test/System.Net/HttpListenerRequestTest.cs +++ b/mcs/class/System/Test/System.Net/HttpListenerRequestTest.cs @@ -42,7 +42,6 @@ using MonoTests.Helpers; namespace MonoTests.System.Net { [TestFixture] - [Category ("RequiresBSDSockets")] public class HttpListenerRequestTest { [Test] @@ -151,6 +150,9 @@ namespace MonoTests.System.Net } [Test] +#if FEATURE_NO_BSD_SOCKETS + [ExpectedException (typeof (PlatformNotSupportedException))] +#endif public void HttpMethod () { var port = NetworkHelpers.FindFreePort (); @@ -165,6 +167,9 @@ namespace MonoTests.System.Net } [Test] +#if FEATURE_NO_BSD_SOCKETS + [ExpectedException (typeof (PlatformNotSupportedException))] +#endif public void HttpBasicAuthScheme () { var port = NetworkHelpers.FindFreePort (); @@ -180,6 +185,9 @@ namespace MonoTests.System.Net } [Test] +#if FEATURE_NO_BSD_SOCKETS + [ExpectedException (typeof (PlatformNotSupportedException))] +#endif public void HttpRequestUriIsNotDecoded () { var port = NetworkHelpers.FindFreePort (); @@ -194,6 +202,9 @@ namespace MonoTests.System.Net } [Test] +#if FEATURE_NO_BSD_SOCKETS + [ExpectedException (typeof (PlatformNotSupportedException))] +#endif public void HttpRequestIsLocal () { var port = NetworkHelpers.FindFreePort (); @@ -221,6 +232,9 @@ namespace MonoTests.System.Net } [Test] // #29927 +#if FEATURE_NO_BSD_SOCKETS + [ExpectedException (typeof (PlatformNotSupportedException))] +#endif public void HttpRequestUriUnescape () { var prefix = "http://localhost:" + NetworkHelpers.FindFreePort () + "/";