Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2017-02-13 14:49:38 +0300
committerMarek Safar <marek.safar@gmail.com>2017-02-13 14:50:12 +0300
commitaad8adc02df726cbae7a176ee1a03651fd575b1a (patch)
treea73784ea39d9eff8d679781340c9febc39dae43e /mcs/class/System/Test
parentcfd8ee350bb4cadf6e2767008d0a77ac77decb84 (diff)
[System] Fixes failing tests on watch
Diffstat (limited to 'mcs/class/System/Test')
-rw-r--r--mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs b/mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs
index 1e0e703aa16..cacfcd60a0e 100644
--- a/mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs
+++ b/mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs
@@ -166,7 +166,12 @@ namespace MonoTests.System.Net.WebSockets
Assert.AreEqual (WebSocketState.Closed, socket.State);
}
- [Test, ExpectedException (typeof (InvalidOperationException))]
+ [Test]
+#if FEATURE_NO_BSD_SOCKETS
+ [ExpectedException (typeof (PlatformNotSupportedException))]
+#else
+ [ExpectedException (typeof (InvalidOperationException))]
+#endif
public void SendAsyncArgTest_NotConnected ()
{
socket.SendAsync (new ArraySegment<byte> (new byte[0]), WebSocketMessageType.Text, true, CancellationToken.None);
@@ -180,7 +185,12 @@ namespace MonoTests.System.Net.WebSockets
socket.SendAsync (new ArraySegment<byte> (), WebSocketMessageType.Text, true, CancellationToken.None);
}
- [Test, ExpectedException (typeof (InvalidOperationException))]
+ [Test]
+#if FEATURE_NO_BSD_SOCKETS
+ [ExpectedException (typeof (PlatformNotSupportedException))]
+#else
+ [ExpectedException (typeof (InvalidOperationException))]
+#endif
public void ReceiveAsyncArgTest_NotConnected ()
{
socket.ReceiveAsync (new ArraySegment<byte> (new byte[0]), CancellationToken.None);