Skip to content

Commit 54b64f1

Browse files
Upgrade to xunit v2.6
1 parent 3d64ecc commit 54b64f1

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

test/AppTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ public async Task ThrowsOnAccessValidationFailure()
118118
var settings = new Settings { Name = "ecoAPM" };
119119

120120
//act
121-
var task = app.Run(settings);
121+
async Task task() => await app.Run(settings);
122122

123123
//assert
124-
await Assert.ThrowsAnyAsync<Exception>(async () => await task);
124+
await Assert.ThrowsAnyAsync<Exception>(task);
125125
}
126126

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

138138
//act
139-
var task = app.Run(settings);
139+
async Task task() => await app.Run(settings);
140140

141141
//assert
142-
await Assert.ThrowsAnyAsync<Exception>(async () => await task);
142+
await Assert.ThrowsAnyAsync<Exception>(task);
143143
}
144144
}

test/GitHubLabelSync.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ItemGroup>
88
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2"/>
99
<PackageReference Include="NSubstitute" Version="5.1.0"/>
10-
<PackageReference Include="xunit" Version="2.5.3"/>
10+
<PackageReference Include="xunit" Version="2.6.0"/>
1111
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
1212
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all"/>
1313
<ProjectReference Include="../src/GitHubLabelSync.csproj"/>

0 commit comments

Comments
 (0)