Imported Upstream version 3.10.0

Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
Jo Shields
2014-10-04 11:27:48 +01:00
parent fe777c5c82
commit 8b9b85e7f5
970 changed files with 20242 additions and 31308 deletions

View File

@ -56,7 +56,7 @@ namespace MonoTests.System.Net.Http.Headers
[Test]
/*
* This fails on Windows with the .NET runtime:
* .NET BUG
*
* Test Case Failures:
* 1) MonoTests.System.Net.Http.Headers.ContentDispositionHeaderValueTest.Equals : System.NullReferenceException : Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
@ -64,7 +64,7 @@ namespace MonoTests.System.Net.Http.Headers
* bei MonoTests.System.Net.Http.Headers.ContentDispositionHeaderValueTest.Equals()
*
*/
[Category ("NotWorking")]
[Category ("NotDotNet")]
public void Equals ()
{
var value = new ContentDispositionHeaderValue ("x");

View File

@ -800,6 +800,30 @@ namespace MonoTests.System.Net.Http
}
}
[Test]
public void RequestUriAfterRedirect ()
{
var listener = CreateListener (l => {
var request = l.Request;
var response = l.Response;
response.StatusCode = (int)HttpStatusCode.Moved;
response.RedirectLocation = "http://xamarin.com/";
});
try {
var chandler = new HttpClientHandler ();
chandler.AllowAutoRedirect = true;
var client = new HttpClient (chandler);
var resp = client.GetAsync (LocalServer).Result;
Assert.AreEqual ("http://xamarin.com/", resp.RequestMessage.RequestUri.AbsoluteUri, "#1");
} finally {
listener.Abort ();
listener.Close ();
}
}
[Test]
/*
* Properties may only be modified before sending the first request.

View File

@ -160,7 +160,7 @@ namespace MonoTests.System.Net.Http
* The .NET runtime hits the "#9" assertion.
* The test succeeds with Mono.
*/
[Category ("NotWorking")]
[Category ("NotDotNet")]
public void CopyToAsync ()
{
var ms = new MemoryStream ();