Imported Upstream version 5.10.1.42

Former-commit-id: fc4cafa487495cd406de2dca661ff1385900bb67
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-04-11 08:39:29 +00:00
parent 9de631b383
commit cc017e5770
36 changed files with 34 additions and 33 deletions

View File

@ -1691,10 +1691,11 @@ namespace MonoTests.System.Net
// We throw a PlatformNotSupportedException deeper, which is caught and re-thrown as WebException
[ExpectedException (typeof (WebException))]
#endif
[Category ("InetAccess")]
public void GetWebRequestOverriding ()
{
GetWebRequestOverridingTestClass testObject = new GetWebRequestOverridingTestClass ();
testObject.DownloadData ("http://www.mono-project.com");
testObject.DownloadData ("http://www.example.com");
Assert.IsTrue (testObject.overridedCodeRan, "Overrided code wasn't called");
}