You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice to have a warning when using .Throws() on a method returning a Task instead of .Returns(Task.FromException) (or maybe ThrowsAsync when available Related to: nsubstitute/NSubstitute#609)
This would help to mock exception correctly on async methods.
The text was updated successfully, but these errors were encountered:
Hello,
I think it would be nice to have a warning when using
.Throws()
on a method returning aTask
instead of.Returns(Task.FromException)
(or maybeThrowsAsync
when available Related to: nsubstitute/NSubstitute#609)This would help to mock exception correctly on async methods.
The text was updated successfully, but these errors were encountered: