File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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" />
You can’t perform that action at this time.
0 commit comments