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
Merged

Invoking+Awaiting #1051

merged 1 commit into from May 27, 2019

Conversation

@jnyrup
Copy link
Member

@jnyrup jnyrup 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
@jnyrup jnyrup deleted the Invoking branch May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants