diff --git a/Microsoft.Kiota.Abstractions.Tests/Authentication/ApiKeyAuthenticationProviderTests.cs b/Microsoft.Kiota.Abstractions.Tests/Authentication/ApiKeyAuthenticationProviderTests.cs index f9e236fe..b6270109 100644 --- a/Microsoft.Kiota.Abstractions.Tests/Authentication/ApiKeyAuthenticationProviderTests.cs +++ b/Microsoft.Kiota.Abstractions.Tests/Authentication/ApiKeyAuthenticationProviderTests.cs @@ -12,7 +12,7 @@ public void DefensiveProgramming() { Assert.Throws(() => new ApiKeyAuthenticationProvider("key", null, ApiKeyAuthenticationProvider.KeyLocation.Header)); var value = new ApiKeyAuthenticationProvider("key", "param", ApiKeyAuthenticationProvider.KeyLocation.Header); - Assert.ThrowsAsync(async () => await value.AuthenticateRequestAsync(null)); + Assert.ThrowsAsync(() => value.AuthenticateRequestAsync(null)); } [Fact] public async Task AddsInHeader() {