build(deps): bump xunit from 2.6.1 to 2.6.3 (#2834)

* build(deps): bump xunit from 2.6.1 to 2.6.3

Bumps [xunit](https://github.com/xunit/xunit) from 2.6.1 to 2.6.3.
- [Commits](https://github.com/xunit/xunit/compare/2.6.1...2.6.3)

---
updated-dependencies:
- dependency-name: xunit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add required async/awaits

* public async void --> public async Task

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
This commit is contained in:
dependabot[bot]
2023-12-18 13:07:52 -08:00
committed by GitHub
parent 849be93056
commit c895ac8efb
9 changed files with 21 additions and 21 deletions

View File

@@ -34,7 +34,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.1" /> <PackageReference Include="xunit" Version="2.6.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" />
</ItemGroup> </ItemGroup>

View File

@@ -61,7 +61,7 @@ public class ReleasesClientTests
var firstReleaseRequest = new NewRelease("0.1") { MakeLatest = MakeLatestQualifier.False }; var firstReleaseRequest = new NewRelease("0.1") { MakeLatest = MakeLatestQualifier.False };
await _releaseClient.Create(_context.Repository.Id, firstReleaseRequest); await _releaseClient.Create(_context.Repository.Id, firstReleaseRequest);
Assert.ThrowsAsync<NotFoundException>(async () => await _releaseClient.GetLatest(_context.RepositoryOwner, _context.RepositoryName)); await Assert.ThrowsAsync<NotFoundException>(async () => await _releaseClient.GetLatest(_context.RepositoryOwner, _context.RepositoryName));
var secondReleaseRequest = new NewRelease("0.2") { MakeLatest = MakeLatestQualifier.True }; var secondReleaseRequest = new NewRelease("0.2") { MakeLatest = MakeLatestQualifier.True };
var secondRelease = await _releaseClient.Create(_context.Repository.Id, secondReleaseRequest); var secondRelease = await _releaseClient.Create(_context.Repository.Id, secondReleaseRequest);

View File

@@ -36,7 +36,7 @@
<PackageReference Include="GitHubJwt" Version="0.0.6" /> <PackageReference Include="GitHubJwt" Version="0.0.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="System.IO.Compression" Version="4.3.0" /> <PackageReference Include="System.IO.Compression" Version="4.3.0" />
<PackageReference Include="xunit" Version="2.6.1" /> <PackageReference Include="xunit" Version="2.6.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" />
</ItemGroup> </ItemGroup>

View File

@@ -13,11 +13,11 @@ namespace Octokit.Tests
public class ThePaginatedList public class ThePaginatedList
{ {
[Fact] [Fact]
public void RejectsInvalidValues() public async Task RejectsInvalidValues()
{ {
var client = Substitute.For<IRepositoriesClient>(); var client = Substitute.For<IRepositoriesClient>();
Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => client.GetAllForOrgAsync("octokit")[-1]); await Assert.ThrowsAsync<ArgumentOutOfRangeException>(() => client.GetAllForOrgAsync("octokit")[-1]);
} }
[Fact] [Fact]
@@ -72,7 +72,7 @@ namespace Octokit.Tests
public void RejectInvalidValues() public void RejectInvalidValues()
{ {
var client = Substitute.For<IRepositoriesClient>(); var client = Substitute.For<IRepositoriesClient>();
Assert.Throws<ArgumentOutOfRangeException>(() => client.GetAllForUserAsync("fake", -1)); Assert.Throws<ArgumentOutOfRangeException>(() => client.GetAllForUserAsync("fake", -1));
Assert.Throws<ArgumentOutOfRangeException>(() => client.GetAllForUserAsync("fake", 0)); Assert.Throws<ArgumentOutOfRangeException>(() => client.GetAllForUserAsync("fake", 0));
} }

View File

@@ -20,7 +20,7 @@ namespace Octokit.Tests.Caching
public class TheSendMethod public class TheSendMethod
{ {
[Fact] [Fact]
public void EnsuresNonNullArguments() public async Task EnsuresNonNullArguments()
{ {
// arrange // arrange
var underlyingClient = Substitute.For<IHttpClient>(); var underlyingClient = Substitute.For<IHttpClient>();
@@ -29,7 +29,7 @@ namespace Octokit.Tests.Caching
var cachingHttpClient = new CachingHttpClient(underlyingClient, responseCache); var cachingHttpClient = new CachingHttpClient(underlyingClient, responseCache);
// act + assert // act + assert
Assert.ThrowsAsync<ArgumentNullException>(() => cachingHttpClient.Send(null, CancellationToken.None)); await Assert.ThrowsAsync<ArgumentNullException>(() => cachingHttpClient.Send(null, CancellationToken.None));
} }
[Theory] [Theory]

View File

@@ -21,11 +21,11 @@ namespace Octokit.Tests.Clients
public class TheGetAllLicensesMethod public class TheGetAllLicensesMethod
{ {
[Fact] [Fact]
public void EnsuresNonNullArguments() public async Task EnsuresNonNullArguments()
{ {
var client = new LicensesClient(Substitute.For<IApiConnection>()); var client = new LicensesClient(Substitute.For<IApiConnection>());
Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllLicenses(null)); await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllLicenses(null));
} }
[Fact] [Fact]

View File

@@ -207,11 +207,11 @@ namespace Octokit.Tests.Clients
public class TheGetAllLicensesMethod public class TheGetAllLicensesMethod
{ {
[Fact] [Fact]
public void EnsuresNonNullArguments() public async Task EnsuresNonNullArguments()
{ {
var client = new MiscellaneousClient(Substitute.For<IApiConnection>()); var client = new MiscellaneousClient(Substitute.For<IApiConnection>());
Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllLicenses(null)); await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllLicenses(null));
} }
[Fact] [Fact]

View File

@@ -123,11 +123,11 @@ namespace Octokit.Tests.Clients
} }
[Fact] [Fact]
public void EnsuresNonEmptyArguments() public async Task EnsuresNonEmptyArguments()
{ {
var client = new OrganizationsClient(Substitute.For<IApiConnection>()); var client = new OrganizationsClient(Substitute.For<IApiConnection>());
var config = new Dictionary<string, string> { { "url", "" } }; var config = new Dictionary<string, string> { { "url", "" } };
Assert.ThrowsAsync<ArgumentException>(() => client.Hook.Create("", new NewOrganizationHook("name", config))); await Assert.ThrowsAsync<ArgumentException>(() => client.Hook.Create("", new NewOrganizationHook("name", config)));
} }
[Fact] [Fact]
@@ -167,10 +167,10 @@ namespace Octokit.Tests.Clients
} }
[Fact] [Fact]
public void EnsuresNonEmptyArguments() public async Task EnsuresNonEmptyArguments()
{ {
var client = new OrganizationsClient(Substitute.For<IApiConnection>()); var client = new OrganizationsClient(Substitute.For<IApiConnection>());
Assert.ThrowsAsync<ArgumentException>(() => client.Hook.Edit("", 123, new EditOrganizationHook())); await Assert.ThrowsAsync<ArgumentException>(() => client.Hook.Edit("", 123, new EditOrganizationHook()));
} }
[Fact] [Fact]
@@ -197,10 +197,10 @@ namespace Octokit.Tests.Clients
} }
[Fact] [Fact]
public void EnsuresNonEmptyArguments() public async Task EnsuresNonEmptyArguments()
{ {
var client = new OrganizationsClient(Substitute.For<IApiConnection>()); var client = new OrganizationsClient(Substitute.For<IApiConnection>());
Assert.ThrowsAsync<ArgumentException>(() => client.Hook.Ping("", 123)); await Assert.ThrowsAsync<ArgumentException>(() => client.Hook.Ping("", 123));
} }
[Fact] [Fact]
@@ -237,10 +237,10 @@ namespace Octokit.Tests.Clients
} }
[Fact] [Fact]
public void EnsuresNonEmptyArguments() public async Task EnsuresNonEmptyArguments()
{ {
var client = new OrganizationsClient(Substitute.For<IApiConnection>()); var client = new OrganizationsClient(Substitute.For<IApiConnection>());
Assert.ThrowsAsync<ArgumentException>(() => client.Hook.Delete("", 123)); await Assert.ThrowsAsync<ArgumentException>(() => client.Hook.Delete("", 123));
} }
} }

View File

@@ -35,7 +35,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" /> <PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="xunit" Version="2.6.1" /> <PackageReference Include="xunit" Version="2.6.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" /> <PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" />
</ItemGroup> </ItemGroup>