Supply the call to ctor with anyreponame string parameter for unit test

This commit is contained in:
eriawan
2017-03-21 00:58:49 +07:00
parent 1fb9a40c49
commit 32aa4e7443
2 changed files with 4 additions and 4 deletions
@@ -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));