mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-30 09:49:04 +00:00
Supply the call to ctor with anyreponame string parameter for unit test
This commit is contained in:
@@ -1040,7 +1040,7 @@ namespace Octokit.Tests.Clients
|
||||
public async Task EnsuresNonNullArguments()
|
||||
{
|
||||
var client = new RepositoriesClient(Substitute.For<IApiConnection>());
|
||||
var update = new RepositoryUpdate();
|
||||
var update = new RepositoryUpdate("anyreponame");
|
||||
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Edit(null, "repo", update));
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Edit("owner", null, update));
|
||||
|
||||
@@ -888,7 +888,7 @@ namespace Octokit.Tests.Reactive
|
||||
{
|
||||
var github = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableRepositoriesClient(github);
|
||||
var update = new RepositoryUpdate();
|
||||
var update = new RepositoryUpdate("anyreponame");
|
||||
|
||||
client.Edit("owner", "repo", update);
|
||||
|
||||
@@ -900,7 +900,7 @@ namespace Octokit.Tests.Reactive
|
||||
{
|
||||
var github = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableRepositoriesClient(github);
|
||||
var update = new RepositoryUpdate();
|
||||
var update = new RepositoryUpdate("anyreponame");
|
||||
|
||||
client.Edit(1, update);
|
||||
|
||||
@@ -911,7 +911,7 @@ namespace Octokit.Tests.Reactive
|
||||
public async Task EnsuresNonNullArguments()
|
||||
{
|
||||
var client = new ObservableRepositoriesClient(Substitute.For<IGitHubClient>());
|
||||
var update = new RepositoryUpdate();
|
||||
var update = new RepositoryUpdate("anyreponame");
|
||||
|
||||
Assert.Throws<ArgumentNullException>(() => client.Edit(null, "repo", update));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Edit("owner", null, update));
|
||||
|
||||
Reference in New Issue
Block a user