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
Wondering if it is worth adding the following 2 extension methods for Task/Task<T> to not need Func<Task> act = .... each time I want to assert the method call with throw an exception.
I have been copying this code from project to project and sounds generic enough to be moved.
Probably would be best to create a TaskAssertions / GenericTaskAssertions which either inherit from or delegate to the corresponding [Non]GenericAsyncFunctionsAssertions on the ThrowsAsync etc.
If it is something you guys may be interested in adding let me know, I can create a PR.
Wondering if it is worth adding the following 2 extension methods for
Task
/Task<T>
to not needFunc<Task> act = ....
each time I want to assert the method call with throw an exception.I have been copying this code from project to project and sounds generic enough to be moved.
Probably would be best to create a
TaskAssertions
/GenericTaskAssertions
which either inherit from or delegate to the corresponding[Non]GenericAsyncFunctionsAssertions
on theThrowsAsync
etc.If it is something you guys may be interested in adding let me know, I can create a PR.
This allows me to
Rather than
The text was updated successfully, but these errors were encountered: