feat: Drop support for .NET 4.6 (#2521)

This commit is contained in:
Nick Floyd
2022-08-04 12:12:49 -05:00
committed by GitHub
parent 4d46d5fb41
commit 6e72fdaa59
16 changed files with 48 additions and 111 deletions
@@ -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));