Skip to content

Null checks on delegates#1117

Merged
jnyrup merged 1 commit intofluentassertions:masterfrom
jnyrup:NullActions
Aug 18, 2019
Merged

Null checks on delegates#1117
jnyrup merged 1 commit intofluentassertions:masterfrom
jnyrup:NullActions

Conversation

@jnyrup
Copy link
Copy Markdown
Member

@jnyrup jnyrup commented Aug 18, 2019

When asserting on delegates we do not check if the delegate is non-null before invoking it.

FailIfSubjectIsAsyncVoid is changed so it does not run for AsyncFunctionAssertions via a new CanHandleAsync property.
The reason it worked before, was that ExecuteInDefaultSynchronizationContext wrapped an async Task method in a Task method.

@jnyrup jnyrup merged commit d55545a into fluentassertions:master Aug 18, 2019
@jnyrup jnyrup deleted the NullActions branch August 18, 2019 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants