Skip to content

Commit 3a7f6d3

Browse files
authored
Merge pull request #2192 from microsoftgraph/dependabot/nuget/xunit-2.6.0
Bump xunit from 2.5.3 to 2.6.0
2 parents bc193d4 + 2298a23 commit 3a7f6d3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<ItemGroup>
1919
<PackageReference Include="Microsoft.NET.Test.Sdk" 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
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ErrorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public async Task ErrorThrottlingError()
1111
// To get a throttling error, I mocked up a 429 response in a text file and turned on the Fiddler
1212
// autoresponder to return the text file as the response envelope. The autoresponder for this
1313
// scenario responds to EXACT:https://graph.microsoft.com/v1.0/groups/036bd54c-c6e5-43eb-b8b5-03e019e75bd1
14-
ServiceException e = await Assert.ThrowsAsync<ServiceException>(async () => await graphClient.Groups["036bd54c-c6e5-43eb-b8b5-03e019e75bd1"].GetAsync(requestConfiguration => requestConfiguration.Headers.Add("client-request-id", "dddddddd-dddd-dddd-dddd-dddddddddddd")));
14+
ServiceException e = await Assert.ThrowsAsync<ServiceException>(() => graphClient.Groups["036bd54c-c6e5-43eb-b8b5-03e019e75bd1"].GetAsync(requestConfiguration => requestConfiguration.Headers.Add("client-request-id", "dddddddd-dddd-dddd-dddd-dddddddddddd")));
1515

1616
Assert.Contains("tooManyRetries", e.Message);
1717
}

tests/Microsoft.Graph.DotnetCore.Test/Requests/Generated/CollectionReferencesRequestTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public async System.Threading.Tasks.Task AddAsync_IdRequired()
7878
).Returns(new JsonSerializationWriter());
7979

8080

81-
await Assert.ThrowsAsync<ODataError>(async () => await graphServiceClient.Groups["groupId"].Members.Ref.PostAsync(userToCreate));
81+
await Assert.ThrowsAsync<ODataError>(() => graphServiceClient.Groups["groupId"].Members.Ref.PostAsync(userToCreate));
8282

8383
}
8484

0 commit comments

Comments
 (0)