Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoking+Awaiting #1051

Merged
merged 1 commit into from May 27, 2019

Conversation

Projects
None yet
2 participants
@jnyrup
Copy link
Collaborator

commented May 26, 2019

This fixes #872 and complements #1015 by implementing

Func<TResult> Invoking<T, TResult>(this T subject, Func<T, TResult> action)

For consistency this also implements

Func<Task<TResult>> Awaiting<T, TResult>(this T subject, Func<T, Task<TResult>> action)

though this currently doesn't have much benefit as both Func<Task> and Func<Task<T>> uses AsyncFunctionAssertions.

@jnyrup jnyrup requested a review from dennisdoomen May 26, 2019

@jnyrup jnyrup merged commit 72469c5 into fluentassertions:master May 27, 2019

1 check passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details

@jnyrup jnyrup deleted the jnyrup:Invoking branch May 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.