mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
Redundant commas in object initializers were removed.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -147,7 +147,7 @@ namespace Octokit.Tests
|
||||
},
|
||||
new List<string>
|
||||
{
|
||||
"user",
|
||||
"user"
|
||||
},
|
||||
new List<string>
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Octokit.Tests.Helpers
|
||||
|
||||
var parameters = new Dictionary<string, string>
|
||||
{
|
||||
{"foo", null },
|
||||
{"foo", null }
|
||||
};
|
||||
|
||||
Assert.Throws<ArgumentNullException>(() => uri.ApplyParameters(parameters));
|
||||
|
||||
@@ -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>
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -356,7 +356,7 @@ namespace Octokit
|
||||
{
|
||||
Method = method,
|
||||
BaseAddress = baseAddress ?? BaseAddress,
|
||||
Endpoint = uri,
|
||||
Endpoint = uri
|
||||
};
|
||||
|
||||
return SendDataInternal<T>(body, accepts, contentType, cancellationToken, twoFactorAuthenticationCode, request);
|
||||
|
||||
Reference in New Issue
Block a user