Make Response.StatusCode readonly

This commit is contained in:
Haacked
2015-01-01 23:53:25 -08:00
parent 89e8fdfeaf
commit 4653e798a7
16 changed files with 44 additions and 51 deletions
@@ -27,7 +27,7 @@ namespace Octokit.Tests.Exceptions
[Fact]
public void HasDefaultMessage()
{
var response = new Response { StatusCode = HttpStatusCode.Forbidden };
var response = new Response(HttpStatusCode.Forbidden , null, new Dictionary<string, string>(), "application/json");
var forbiddenException = new ForbiddenException(response);
Assert.Equal("Request Forbidden", forbiddenException.Message);