You've already forked linux-packaging-mono
Imported Upstream version 3.10.0
Former-commit-id: 172c8e3c300b39d5785c7a3e8dfb08ebdbc1a99b
This commit is contained in:
@ -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");
|
||||
|
@ -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.
|
||||
|
@ -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 ();
|
||||
|
Reference in New Issue
Block a user