-
-
Notifications
You must be signed in to change notification settings - Fork 111
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When Nunit Assert looks like this:
Assert.ThrowsAsync(Is.TypeOf(typeof(ArgumentException)), async () => await Sut.Execute(10));
autmatic TUnit conversion replaces it with:
await Assert.That(Is.TypeOf(typeof(ArgumentException))).Throws();
which completely removes code that needs to be migrated
Expected Behavior
as above
Actual Behavior
as above
Steps to Reproduce
as above
TUnit Version
1.9.2
.NET Version
10
Operating System
Windows
IDE / Test Runner
dotnet CLI (dotnet test / dotnet run)
Error Output / Stack Trace
Additional Context
No response
IDE-Specific Issue?
- I've confirmed this issue occurs when running via
dotnet testordotnet run, not just in my IDE
Copilot
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working