Skip to content

Commit

Permalink
Upgrade to xunit v2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDesmond-ca committed Nov 1, 2023
1 parent 3d64ecc commit 54b64f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/AppTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ public async Task ThrowsOnAccessValidationFailure()
var settings = new Settings { Name = "ecoAPM" };

//act
var task = app.Run(settings);
async Task task() => await app.Run(settings);

//assert
await Assert.ThrowsAnyAsync<Exception>(async () => await task);
await Assert.ThrowsAnyAsync<Exception>(task);
}

[Fact]
Expand All @@ -136,9 +136,9 @@ public async Task ThrowsOnUserValidationFailure()
var settings = new Settings { Name = "ecoAPM" };

//act
var task = app.Run(settings);
async Task task() => await app.Run(settings);

//assert
await Assert.ThrowsAnyAsync<Exception>(async () => await task);
await Assert.ThrowsAnyAsync<Exception>(task);
}
}
2 changes: 1 addition & 1 deletion test/GitHubLabelSync.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2"/>
<PackageReference Include="NSubstitute" Version="5.1.0"/>
<PackageReference Include="xunit" Version="2.5.3"/>
<PackageReference Include="xunit" Version="2.6.0"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all"/>
<ProjectReference Include="../src/GitHubLabelSync.csproj"/>
Expand Down

0 comments on commit 54b64f1

Please sign in to comment.