Description
In the documentation of migration from xUnit, it looks like the following.
However, Assert.ThrowsAsync does not take an Action as an argument, so this results in a CS0029 compile-time error.
xunit
Assert.Throws<ArgumentException>(() => ThrowsException());
TUnit
await Assert.ThrowsAsync<ArgumentException>(() => ThrowsException());
https://tunit.dev/docs/migration/xunit/#exception-assertions
Expected Behavior
Provide an alternative that does not use Assert.ThrowsAsync.
Actual Behavior
using Assert.ThrowsAsync.
Steps to Reproduce
migration
TUnit Version
latest
.NET Version
any
Operating System
Windows
IDE / Test Runner
dotnet CLI (dotnet test / dotnet run)
Error Output / Stack Trace
Additional Context
No response
IDE-Specific Issue?
Description
In the documentation of migration from xUnit, it looks like the following.
However,
Assert.ThrowsAsyncdoes not take anActionas an argument, so this results in a CS0029 compile-time error.xunit
TUnit
https://tunit.dev/docs/migration/xunit/#exception-assertions
Expected Behavior
Provide an alternative that does not use
Assert.ThrowsAsync.Actual Behavior
using
Assert.ThrowsAsync.Steps to Reproduce
migration
TUnit Version
latest
.NET Version
any
Operating System
Windows
IDE / Test Runner
dotnet CLI (dotnet test / dotnet run)
Error Output / Stack Trace
Additional Context
No response
IDE-Specific Issue?
dotnet testordotnet run, not just in my IDE