Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit 3ddf8e0

Browse files
Merge pull request #156 from microsoft/dependabot/nuget/xunit-2.6.0
Bump xunit from 2.5.3 to 2.6.0
2 parents c3277ce + e9e9bfa commit 3ddf8e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Microsoft.Kiota.Http.HttpClientLibrary.Tests/Microsoft.Kiota.Http.HttpClientLibrary.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
1919
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="17.7.2" />
2020
<PackageReference Include="Moq" Version="4.20.69" />
21-
<PackageReference Include="xunit" Version="2.5.3" />
21+
<PackageReference Include="xunit" Version="2.6.0" />
2222
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
2323
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2424
<PrivateAssets>all</PrivateAssets>

Microsoft.Kiota.Http.HttpClientLibrary.Tests/Middleware/RedirectHandlerTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Net;
33
using System.Net.Http;
44
using System.Net.Http.Headers;
@@ -161,7 +161,7 @@ public async Task RedirectWithDifferentSchemeThrowsInvalidOperationExceptionIfAl
161161
redirectResponse.Headers.Location = new Uri("http://example.org/bar");
162162
this._testHttpMessageHandler.SetHttpResponse(redirectResponse, new HttpResponseMessage(HttpStatusCode.OK));// sets the mock response
163163
// Act
164-
var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await this._invoker.SendAsync(httpRequestMessage, CancellationToken.None));
164+
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => this._invoker.SendAsync(httpRequestMessage, CancellationToken.None));
165165
// Assert
166166
Assert.Contains("Redirects with changing schemes not allowed by default", exception.Message);
167167
Assert.Equal("Scheme changed from https to http.", exception.InnerException?.Message);
@@ -233,7 +233,7 @@ public async Task ExceedMaxRedirectsShouldThrowsException()
233233
response2.Headers.Location = new Uri("http://example.org/foo");
234234
this._testHttpMessageHandler.SetHttpResponse(response1, response2);// sets the mock response
235235
// Act
236-
var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await this._invoker.SendAsync(
236+
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => this._invoker.SendAsync(
237237
httpRequestMessage, CancellationToken.None));
238238
// Assert
239239
Assert.Equal("Too many redirects performed", exception.Message);

0 commit comments

Comments
 (0)