mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
Added ApiOption overloads to methods on IRepositoryCommitsClient (#1247)
* Added ApiOptions overloads for RepositoryCommitClient methods * Added overloads to Reactive clients * Integration tests in progress * Integration test addition in progress * More integration tests added * Added Ensure things * Minor changes * Minor changes * Few changes * Tried to fix errors * Tried to fix errors * Fixed a few things * Fixed integration tests * Tidying up * Added public keyword * Added unit tests for GetAll() in normal and reactive methods * Minor changes * Changed the class name * Fixed the unit test
This commit is contained in:
committed by
Brendan Forster
parent
4ae6000ac1
commit
43f6cfe28b
@@ -269,13 +269,13 @@ namespace Octokit.Tests.Reactive
|
||||
public class TheGetAllCommitsMethod
|
||||
{
|
||||
[Fact]
|
||||
public void EnsuresArguments()
|
||||
public void EnsuresNonNullArguments()
|
||||
{
|
||||
var client = new ObservableRepositoriesClient(Substitute.For<IGitHubClient>());
|
||||
|
||||
Assert.Throws<ArgumentNullException>(() => client.Commit.GetAll(null, "repo"));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Commit.GetAll("owner", null));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Commit.GetAll("owner", "repo", null));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Commit.GetAll("owner", "repo", null, ApiOptions.None));
|
||||
Assert.Throws<ArgumentException>(() => client.Commit.GetAll("", "repo"));
|
||||
Assert.Throws<ArgumentException>(() => client.Commit.GetAll("owner", ""));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user