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 20, 2023
1 parent 0d4179e commit 7dd89d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/LoadTestToolbox.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="Spectre.Console.Testing" Version="0.47.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" />
<ProjectReference Include="..\src\LoadTestToolbox.csproj" />
Expand Down
6 changes: 4 additions & 2 deletions test/Tools/Hammer/HammerCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public async Task ShowsExceptionOnFailure()
}

[Fact]
public void CannotHammerInReverse()
public async Task CannotHammerInReverse()
{
//arrange
using var http = new HttpClient(new MockHttpMessageHandler());
Expand All @@ -65,8 +65,10 @@ public void CannotHammerInReverse()

//act
var command = new HammerCommand(http, null!, console);
var result = await command.ExecuteAsync(null!, settings);


//assert
Assert.ThrowsAsync<ArgumentException>(async () => await command.ExecuteAsync(null!, settings));
Assert.Equal(1, result);
}
}

0 comments on commit 7dd89d4

Please sign in to comment.