Redundant commas in object initializers were removed.

This commit is contained in:
aedampir@gmail.com
2016-03-24 23:12:12 +07:00
parent 1cd419ef75
commit 7f5d446ea8
9 changed files with 11 additions and 11 deletions
@@ -352,7 +352,7 @@ public class IssuesClientTests : IDisposable
var newIssue = new NewIssue("A test issue")
{
Body = "A new unassigned issue",
Body = "A new unassigned issue"
};
var issue = await _issuesClient.Create(_context.RepositoryOwner, _context.RepositoryName, newIssue);
@@ -119,7 +119,7 @@ public class PullRequestReviewCommentsClientTests
{
Direction = SortDirection.Descending,
Since = new DateTimeOffset(2013, 11, 15, 11, 43, 01, 00, new TimeSpan()),
Sort = PullRequestReviewCommentSort.Updated,
Sort = PullRequestReviewCommentSort.Updated
};
client.GetAllForRepository("fakeOwner", "fakeRepoName", request);
+1 -1
View File
@@ -147,7 +147,7 @@ namespace Octokit.Tests
},
new List<string>
{
"user",
"user"
},
new List<string>
{
+1 -1
View File
@@ -29,7 +29,7 @@ namespace Octokit.Tests.Helpers
var parameters = new Dictionary<string, string>
{
{"foo", null },
{"foo", null }
};
Assert.Throws<ArgumentNullException>(() => uri.ApplyParameters(parameters));
+2 -2
View File
@@ -71,7 +71,7 @@ namespace Octokit.Tests.Http
var httpClient = Substitute.For<IHttpClient>();
var headers = new Dictionary<string, string>
{
{ "X-Accepted-OAuth-Scopes", "user" },
{ "X-Accepted-OAuth-Scopes", "user" }
};
IResponse response = new Response(headers);
@@ -699,7 +699,7 @@ namespace Octokit.Tests.Http
},
new List<string>
{
"user",
"user"
},
new List<string>
{
+2 -2
View File
@@ -150,7 +150,7 @@ namespace Octokit.Tests.Http
var responseMessage = new HttpResponseMessage
{
StatusCode = HttpStatusCode.OK,
Content = new ByteArrayContent(new byte[] { 0, 1, 1, 0, 1 }),
Content = new ByteArrayContent(new byte[] { 0, 1, 1, 0, 1 })
};
responseMessage.Content.Headers.ContentType = new MediaTypeHeaderValue("image/png");
var tester = new HttpClientAdapterTester();
@@ -167,7 +167,7 @@ namespace Octokit.Tests.Http
var responseMessage = new HttpResponseMessage
{
StatusCode = HttpStatusCode.OK,
Content = new StringContent("{}", Encoding.UTF8, "application/json"),
Content = new StringContent("{}", Encoding.UTF8, "application/json")
};
var tester = new HttpClientAdapterTester();
@@ -12,7 +12,7 @@ public class MilestoneRequestTests
{
State = ItemState.Closed,
SortProperty = MilestoneSort.Completeness,
SortDirection = SortDirection.Descending,
SortDirection = SortDirection.Descending
};
var parameters = request.ToParametersDictionary();
@@ -149,7 +149,7 @@ namespace Octokit.Tests.Reactive
{
Direction = SortDirection.Descending,
Since = new DateTimeOffset(2013, 11, 15, 11, 43, 01, 00, new TimeSpan()),
Sort = PullRequestReviewCommentSort.Updated,
Sort = PullRequestReviewCommentSort.Updated
};
var results = await client.GetAllForRepository("fakeOwner", "fakeRepoName", request).ToArray();
+1 -1
View File
@@ -356,7 +356,7 @@ namespace Octokit
{
Method = method,
BaseAddress = baseAddress ?? BaseAddress,
Endpoint = uri,
Endpoint = uri
};
return SendDataInternal<T>(body, accepts, contentType, cancellationToken, twoFactorAuthenticationCode, request);