diff --git a/Octokit.Reactive/Clients/IObservablePullRequestsClient.cs b/Octokit.Reactive/Clients/IObservablePullRequestsClient.cs
index 5b7fb37128..73dadb39e7 100644
--- a/Octokit.Reactive/Clients/IObservablePullRequestsClient.cs
+++ b/Octokit.Reactive/Clients/IObservablePullRequestsClient.cs
@@ -21,7 +21,7 @@ public interface IObservablePullRequestsClient
/// Client for managing reviews.
///
IObservablePullRequestReviewsClient Review { get; }
-
+
///
/// Client for managing review comments.
///
diff --git a/Octokit.Reactive/Clients/ObservablePullRequestReviewsClient.cs b/Octokit.Reactive/Clients/ObservablePullRequestReviewsClient.cs
index 3debbc94be..e13fcdde46 100644
--- a/Octokit.Reactive/Clients/ObservablePullRequestReviewsClient.cs
+++ b/Octokit.Reactive/Clients/ObservablePullRequestReviewsClient.cs
@@ -35,7 +35,7 @@ public ObservablePullRequestReviewsClient(IGitHubClient client)
public IObservable Create(string owner, string name, int number, PullRequestReviewCreate review)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
- Ensure.ArgumentNotNullOrEmptyString(name,nameof(name));
+ Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(review, nameof(review));
return _client.Create(owner, name, number, review).ToObservable();
}
@@ -65,7 +65,7 @@ public IObservable Create(long repositoryId, int number, Pull
public IObservable Delete(string owner, string name, int number, long reviewId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
- Ensure.ArgumentNotNullOrEmptyString(name,nameof(name));
+ Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
return _client.Delete(owner, name, number, reviewId).ToObservable();
}
@@ -94,7 +94,7 @@ public IObservable Delete(long repositoryId, int number, long reviewId)
public IObservable Dismiss(string owner, string name, int number, long reviewId, PullRequestReviewDismiss dismissMessage)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
- Ensure.ArgumentNotNullOrEmptyString(name,nameof(name));
+ Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(dismissMessage, nameof(dismissMessage));
return _client.Dismiss(owner, name, number, reviewId, dismissMessage).ToObservable();
@@ -125,7 +125,7 @@ public IObservable Dismiss(long repositoryId, int number, lon
public IObservable GetAll(string owner, string name, int number)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
- Ensure.ArgumentNotNullOrEmptyString(name,nameof(name));
+ Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
return GetAll(owner, name, number, ApiOptions.None);
}
@@ -152,7 +152,7 @@ public IObservable GetAll(long repositoryId, int number)
public IObservable GetAll(string owner, string name, int number, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
- Ensure.ArgumentNotNullOrEmptyString(name,nameof(name));
+ Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(options, nameof(options));
return _connection.GetAndFlattenAllPages(ApiUrls.PullRequestReviews(owner, name, number), null, null, options);
@@ -183,7 +183,7 @@ public IObservable GetAll(long repositoryId, int number, ApiO
public IObservable Get(string owner, string name, int number, long reviewId)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
- Ensure.ArgumentNotNullOrEmptyString(name,nameof(name));
+ Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
return _client.Get(owner, name, number, reviewId).ToObservable();
}
@@ -212,7 +212,7 @@ public IObservable Get(long repositoryId, int number, long re
public IObservable Submit(string owner, string name, int number, long reviewId, PullRequestReviewSubmit submitMessage)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
- Ensure.ArgumentNotNullOrEmptyString(name,nameof(name));
+ Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(submitMessage, nameof(submitMessage));
return _client.Submit(owner, name, number, reviewId, submitMessage).ToObservable();
@@ -269,7 +269,7 @@ public IObservable GetAllComments(long repositoryId, i
public IObservable GetAllComments(string owner, string name, int number, long reviewId, ApiOptions options)
{
Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
- Ensure.ArgumentNotNullOrEmptyString(name,nameof(name));
+ Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Ensure.ArgumentNotNull(options, nameof(options));
return _connection.GetAndFlattenAllPages(ApiUrls.PullRequestReviewComments(owner, name, number, reviewId), options);
@@ -286,7 +286,7 @@ public IObservable GetAllComments(long repositoryId, i
{
Ensure.ArgumentNotNull(options, nameof(options));
- return _connection.GetAndFlattenAllPages(ApiUrls.PullRequestReviewComments(repositoryId, number, reviewId),options);
+ return _connection.GetAndFlattenAllPages(ApiUrls.PullRequestReviewComments(repositoryId, number, reviewId), options);
}
}
}
diff --git a/Octokit.Tests.Integration/Clients/OrganizationOutsideCollaboratorsClientTests.cs b/Octokit.Tests.Integration/Clients/OrganizationOutsideCollaboratorsClientTests.cs
index 55b86ca0a6..1c71a107b2 100644
--- a/Octokit.Tests.Integration/Clients/OrganizationOutsideCollaboratorsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/OrganizationOutsideCollaboratorsClientTests.cs
@@ -258,7 +258,7 @@ public async Task CanRemoveOutsideCollaborator()
[OrganizationTest]
public async Task CannotRemoveMemberOfOrganizationAsOutsideCollaborator()
{
- var ex = await Assert.ThrowsAsync(()
+ var ex = await Assert.ThrowsAsync(()
=> _gitHub.Organization.OutsideCollaborator.Delete(Helper.Organization, Helper.UserName));
Assert.True(string.Equals(
diff --git a/Octokit.Tests.Integration/Clients/ProjectsClientTests.cs b/Octokit.Tests.Integration/Clients/ProjectsClientTests.cs
index 64bd5bc255..1f20a2abe9 100644
--- a/Octokit.Tests.Integration/Clients/ProjectsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/ProjectsClientTests.cs
@@ -53,7 +53,7 @@ public async Task GetsAllFilteredProjectsForRepository()
{
var project1 = await CreateRepositoryProjectHelper(_github, _context.RepositoryId);
var project2 = await CreateRepositoryProjectHelper(_github, _context.RepositoryId);
-
+
// Make 2nd project closed
var result = await _github.Repository.Project.Update(project2.Id, new ProjectUpdate { State = ItemState.Closed });
@@ -236,7 +236,7 @@ public async Task GetsAllProjects()
public async Task GetsAllFilteredProjectsForRepository()
{
var project = await CreateOrganizationProjectHelper(_github, Helper.Organization);
-
+
// Make project closed
var result = await _github.Repository.Project.Update(project.Id, new ProjectUpdate { State = ItemState.Closed });
diff --git a/Octokit.Tests.Integration/Clients/PullRequestReviewRequestsClientTests.cs b/Octokit.Tests.Integration/Clients/PullRequestReviewRequestsClientTests.cs
index 9d8ed3324c..b139b3b145 100644
--- a/Octokit.Tests.Integration/Clients/PullRequestReviewRequestsClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/PullRequestReviewRequestsClientTests.cs
@@ -87,7 +87,7 @@ public async Task GetsRequestsWithRepositoryId()
public async Task ReturnsCorrectCountOfReviewRequestsWithStart()
{
var number = await CreateTheWorld(_github, _context);
-
+
var options = new ApiOptions
{
PageSize = 1,
@@ -107,7 +107,7 @@ public async Task ReturnsCorrectCountOfReviewRequestsWithStartWithRepositoryId()
var options = new ApiOptions
{
PageSize = 1,
- PageCount = 2,
+ PageCount = 1,
StartPage = 2
};
var reviewRequests = await _client.GetAll(_context.RepositoryId, number, options);
@@ -119,7 +119,7 @@ public async Task ReturnsCorrectCountOfReviewRequestsWithStartWithRepositoryId()
public async Task ReturnsDistinctResultsBasedOnStartPage()
{
var number = await CreateTheWorld(_github, _context);
-
+
var startOptions = new ApiOptions
{
PageSize = 1,
@@ -144,7 +144,7 @@ public async Task ReturnsDistinctResultsBasedOnStartPage()
public async Task ReturnsDistinctResultsBasedOnStartPageWithRepositoryId()
{
var number = await CreateTheWorld(_github, _context);
-
+
var startOptions = new ApiOptions
{
PageSize = 1,
@@ -172,7 +172,7 @@ public class TheDeleteMethod : PullRequestReviewRequestClientTestsBase
public async Task DeletesRequests()
{
var number = await CreateTheWorld(_github, _context);
-
+
var reviewRequestsBeforeDelete = await _client.GetAll(_context.RepositoryOwner, _context.RepositoryName, number);
var reviewRequestToCreate = new PullRequestReviewRequest(_collaboratorLogins);
await _client.Delete(_context.RepositoryOwner, _context.RepositoryName, number, reviewRequestToCreate);
@@ -186,11 +186,11 @@ public async Task DeletesRequests()
public async Task DeletesRequestsWithRepositoryId()
{
var number = await CreateTheWorld(_github, _context);
-
- var reviewRequestsBeforeDelete = await _client.GetAll(_context.RepositoryId, number);
+
+ var reviewRequestsBeforeDelete = await _client.GetAll(_context.RepositoryId, number);
var reviewRequestToCreate = new PullRequestReviewRequest(_collaboratorLogins);
await _client.Delete(_context.RepositoryId, number, reviewRequestToCreate);
- var reviewRequestsAfterDelete = await _client.GetAll(_context.RepositoryId, number);
+ var reviewRequestsAfterDelete = await _client.GetAll(_context.RepositoryId, number);
Assert.NotEmpty(reviewRequestsBeforeDelete);
Assert.Empty(reviewRequestsAfterDelete);
diff --git a/Octokit.Tests.Integration/Clients/ReleasesClientTests.cs b/Octokit.Tests.Integration/Clients/ReleasesClientTests.cs
index 472dd09aca..b06f4cfc10 100644
--- a/Octokit.Tests.Integration/Clients/ReleasesClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/ReleasesClientTests.cs
@@ -788,7 +788,7 @@ public async Task CanDeleteAsset()
await _releaseClient.DeleteAsset(_context.RepositoryOwner, _context.RepositoryName, result.Id);
- await Assert.ThrowsAsync(async () => await _releaseClient.DeleteAsset(_context.RepositoryOwner, _context.RepositoryName, result.Id));
+ await Assert.ThrowsAsync(async () => await _releaseClient.GetAsset(_context.RepositoryOwner, _context.RepositoryName, result.Id));
}
[IntegrationTest]
@@ -806,7 +806,9 @@ public async Task CanDeleteAssetWithRepositoryId()
Assert.NotNull(asset);
- await Assert.ThrowsAsync(async () => await _releaseClient.DeleteAsset(_context.Repository.Id, result.Id));
+ await _releaseClient.DeleteAsset(_context.Repository.Id, result.Id);
+
+ await Assert.ThrowsAsync(async () => await _releaseClient.GetAsset(_context.Repository.Id, result.Id));
}
}
diff --git a/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs b/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs
index 8b40dafa3a..179d702242 100644
--- a/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs
@@ -700,9 +700,9 @@ public async Task ReturnsForkedRepository()
{
var github = Helper.GetAuthenticatedClient();
- var repository = await github.Repository.Get("haacked", "libgit2sharp");
+ var repository = await github.Repository.Get("octokitnet-test1", "octokit.net");
- Assert.Equal("https://github.com/Haacked/libgit2sharp.git", repository.CloneUrl);
+ Assert.Equal("https://github.com/octokitnet-test1/octokit.net.git", repository.CloneUrl);
Assert.True(repository.Fork);
}
@@ -711,9 +711,9 @@ public async Task ReturnsForkedRepositoryWithRepositoryId()
{
var github = Helper.GetAuthenticatedClient();
- var repository = await github.Repository.Get(4550038);
+ var repository = await github.Repository.Get(100559458);
- Assert.Equal("https://github.com/Haacked/libgit2sharp.git", repository.CloneUrl);
+ Assert.Equal("https://github.com/octokitnet-test1/octokit.net.git", repository.CloneUrl);
Assert.True(repository.Fork);
}
diff --git a/Octokit.Tests.Integration/Clients/RepositoryCollaboratorClientTests.cs b/Octokit.Tests.Integration/Clients/RepositoryCollaboratorClientTests.cs
index 9bd37a9b96..0859a81431 100644
--- a/Octokit.Tests.Integration/Clients/RepositoryCollaboratorClientTests.cs
+++ b/Octokit.Tests.Integration/Clients/RepositoryCollaboratorClientTests.cs
@@ -381,7 +381,7 @@ public async Task ReturnsNonePermissionForPrivateRepository()
var fixture = github.Repository.Collaborator;
var permission = await fixture.ReviewPermission(context.RepositoryOwner, context.RepositoryName, "octokitnet-test1");
-
+
Assert.Equal(PermissionLevel.None, permission.Permission);
}
}
diff --git a/Octokit.Tests.Integration/Reactive/ObservableNotificationsClientTests.cs b/Octokit.Tests.Integration/Reactive/ObservableNotificationsClientTests.cs
index e0e761fe4d..43d32e63b1 100644
--- a/Octokit.Tests.Integration/Reactive/ObservableNotificationsClientTests.cs
+++ b/Octokit.Tests.Integration/Reactive/ObservableNotificationsClientTests.cs
@@ -12,7 +12,7 @@ public class TheMarkAsReadMethod
public async Task MarksNotificationsRead()
{
var client = new ObservableGitHubClient(Helper.GetAuthenticatedClient());
-
+
await client.Activity.Notifications.MarkAsRead();
}
}
diff --git a/Octokit.Tests.Integration/Reactive/ObservableProjectsClientTests.cs b/Octokit.Tests.Integration/Reactive/ObservableProjectsClientTests.cs
index cdbfa6d4c2..c9fc202457 100644
--- a/Octokit.Tests.Integration/Reactive/ObservableProjectsClientTests.cs
+++ b/Octokit.Tests.Integration/Reactive/ObservableProjectsClientTests.cs
@@ -55,7 +55,7 @@ public async Task GetsAllFilteredProjectsForRepository()
{
var project1 = await CreateRepositoryProjectHelper(_github, _context.RepositoryId);
var project2 = await CreateRepositoryProjectHelper(_github, _context.RepositoryId);
-
+
// Make 2nd project closed
var result = await _github.Repository.Project.Update(project2.Id, new ProjectUpdate { State = ItemState.Closed });
@@ -238,7 +238,7 @@ public async Task GetsAllProjects()
public async Task GetsAllFilteredProjectsForRepository()
{
var project = await CreateOrganizationProjectHelper(_github, Helper.Organization);
-
+
// Make project closed
var result = await _github.Repository.Project.Update(project.Id, new ProjectUpdate { State = ItemState.Closed });
diff --git a/Octokit.Tests.Integration/Reactive/ObservableRepositoryCollaboratorClientTests.cs b/Octokit.Tests.Integration/Reactive/ObservableRepositoryCollaboratorClientTests.cs
index a4ec881fd2..363e7465a8 100644
--- a/Octokit.Tests.Integration/Reactive/ObservableRepositoryCollaboratorClientTests.cs
+++ b/Octokit.Tests.Integration/Reactive/ObservableRepositoryCollaboratorClientTests.cs
@@ -141,7 +141,6 @@ public async Task ReturnsTrueIfUserIsCollaborator()
}
public class TheReviewPermissionMethod
{
-
[IntegrationTest]
public async Task ReturnsReadPermissionForNonCollaborator()
{
diff --git a/Octokit.Tests/Clients/OrganizationOutsideCollaboratorsClientTests.cs b/Octokit.Tests/Clients/OrganizationOutsideCollaboratorsClientTests.cs
index 72ebc40a4b..beffb970be 100644
--- a/Octokit.Tests/Clients/OrganizationOutsideCollaboratorsClientTests.cs
+++ b/Octokit.Tests/Clients/OrganizationOutsideCollaboratorsClientTests.cs
@@ -138,8 +138,8 @@ public void RequestsTheCorrectUrl()
client.Delete("org", "user");
connection.Connection.Received().Delete(
- Arg.Is(u => u.ToString() == "orgs/org/outside_collaborators/user"),
- Arg.Any