oops, corrected the test

This commit is contained in:
Brendan Forster
2015-06-05 16:57:27 +09:30
parent 442bbb43cd
commit eafd63d768
2 changed files with 4 additions and 5 deletions
+3 -5
View File
@@ -157,12 +157,10 @@ namespace Octokit.Tests.Http
var httpRequestMessage = CreateRequest(HttpMethod.Get);
var response = await invoker.SendAsync(httpRequestMessage, new CancellationToken());
Assert.NotSame(response.RequestMessage, httpRequestMessage);
Assert.Equal(4, (int)response.RequestMessage.Properties[RedirectHandler.RedirectCountKey]);
Assert.ThrowsAsync<InvalidOperationException>(
() => invoker.SendAsync(httpRequestMessage, new CancellationToken()));
}
static HttpRequestMessage CreateRequest(HttpMethod method)
{
var httpRequestMessage = new HttpRequestMessage();