Skip to content

Commit

Permalink
Merge pull request #154 from microsoft/dependabot/nuget/xunit-2.6.2
Browse files Browse the repository at this point in the history
Bump xunit from 2.6.1 to 2.6.2
  • Loading branch information
github-actions[bot] authored Nov 20, 2023
2 parents d1dcf3c + 6c0d047 commit a76f2b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ namespace Microsoft.Kiota.Abstractions.Tests;
public class ApiKeyAuthenticationProviderTests
{
[Fact]
public void DefensiveProgramming()
public async Task DefensiveProgramming()
{
Assert.Throws<ArgumentNullException>(() => new ApiKeyAuthenticationProvider(null, "param", ApiKeyAuthenticationProvider.KeyLocation.Header));
Assert.Throws<ArgumentNullException>(() => new ApiKeyAuthenticationProvider("key", null, ApiKeyAuthenticationProvider.KeyLocation.Header));

var value = new ApiKeyAuthenticationProvider("key", "param", ApiKeyAuthenticationProvider.KeyLocation.Header);
Assert.ThrowsAsync<ArgumentNullException>(() => value.AuthenticateRequestAsync(null));
await Assert.ThrowsAsync<ArgumentNullException>(() => value.AuthenticateRequestAsync(null));
}
[Fact]
public async Task AddsInHeader()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
environments https://github.com/microsoft/vstest/issues/2469-->
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.20.69" />
<PackageReference Include="xunit" Version="2.6.1" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit a76f2b9

Please sign in to comment.