Imported Upstream version 4.2.0.179

Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
Xamarin Public Jenkins
2015-08-26 07:17:56 -04:00
committed by Jo Shields
parent 183bba2c9a
commit 6992685b86
7507 changed files with 90259 additions and 657307 deletions

View File

@ -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);
@ -337,6 +340,7 @@ namespace MonoTests.System.Net {
}
[Test] //BNC#323452
[Category ("AndroidNotWorking")] // Fails when ran as part of the entire BCL test suite. Works when only this fixture is ran
public void TestFailedResolution ()
{
try {