mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
feat: Drop support for .NET 4.6 (#2521)
This commit is contained in:
@@ -846,7 +846,7 @@ namespace Octokit.Tests.Reactive
|
||||
{
|
||||
var github = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableRepositoriesClient(github);
|
||||
var update = new RepositoryUpdate("anyreponame");
|
||||
var update = new RepositoryUpdate(){ Name= "anyreponame" };
|
||||
|
||||
client.Edit("owner", "repo", update);
|
||||
|
||||
@@ -858,7 +858,7 @@ namespace Octokit.Tests.Reactive
|
||||
{
|
||||
var github = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableRepositoriesClient(github);
|
||||
var update = new RepositoryUpdate("anyreponame");
|
||||
var update = new RepositoryUpdate(){ Name= "anyreponame" };
|
||||
|
||||
client.Edit(1, update);
|
||||
|
||||
@@ -869,7 +869,7 @@ namespace Octokit.Tests.Reactive
|
||||
public async Task EnsuresNonNullArguments()
|
||||
{
|
||||
var client = new ObservableRepositoriesClient(Substitute.For<IGitHubClient>());
|
||||
var update = new RepositoryUpdate("anyreponame");
|
||||
var update = new RepositoryUpdate() { Name= "anyreponame" };
|
||||
|
||||
Assert.Throws<ArgumentNullException>(() => client.Edit(null, "repo", update));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Edit("owner", null, update));
|
||||
|
||||
Reference in New Issue
Block a user