From: Marek Habersack Date: Thu, 11 Jun 2015 18:00:43 +0000 (+0200) Subject: [tests] Works in stand-alone app, fails in nunit X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=3b0acf8d40afc98e05130a9a8787f2ea77dbefce;hp=9676c58e47b67dcd3313c4d4cf1a69639286b047;p=mono.git [tests] Works in stand-alone app, fails in nunit --- diff --git a/mcs/class/System/Test/System.Net/WebRequestTest.cs b/mcs/class/System/Test/System.Net/WebRequestTest.cs index 8dbdde051bc..fc493ab585a 100644 --- a/mcs/class/System/Test/System.Net/WebRequestTest.cs +++ b/mcs/class/System/Test/System.Net/WebRequestTest.cs @@ -316,6 +316,9 @@ namespace MonoTests.System.Net { } [Test] //BNC#323452 + // Throws exception with Status == Timeout. The same code behaves as the test expects when run from a regular app. + // Might be an issue with the test suite. To investigate. + [Category("AndroidNotWorking")] public void TestFailedConnection () { try { @@ -326,7 +329,7 @@ namespace MonoTests.System.Net { //#if NET_2_0 e.Message == "Unable to connect to the remote server" //#if NET_1_1 e.Message == "The underlying connection was closed: Unable to connect to the remote server." - Assert.AreEqual (((WebException)e).Status, WebExceptionStatus.ConnectFailure); + Assert.AreEqual (WebExceptionStatus.ConnectFailure, ((WebException)e).Status); //#if !NET_1_1 (this is not true in .NET 1.x) Assert.IsNotNull (e.InnerException);