[System] Fix failing ClientWebSocket test
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 16 Feb 2017 01:58:08 +0000 (02:58 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 16 Feb 2017 01:58:43 +0000 (02:58 +0100)
The wrong part of the ifdef was deleted in a4df7d4923aa,
we need to InvalidOperationException instead of PNSE.

mcs/class/System/Test/System.Net.WebSockets/ClientWebSocketTest.cs

index 9c539092359fb78b2724e612dcec36498afea00b..cf4418e8d7a1865d0506c65d243c3926e59f53ff 100644 (file)
@@ -183,7 +183,7 @@ namespace MonoTests.System.Net.WebSockets
                }
 
                [Test]
-               [ExpectedException (typeof (PlatformNotSupportedException))]
+               [ExpectedException (typeof (InvalidOperationException))]
                [Category ("MobileNotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran
                public void ReceiveAsyncArgTest_NotConnected ()
                {