Skip to content

Conversation

@krajek
Copy link
Contributor

@krajek krajek commented Sep 20, 2018

Follow up for #915.

A lazy version of FailWith is useful when calculations of messages are "expensive' and could be delayed until we are that we will throw. FA main scenario is that most tests do not fail, so I think it makes sense to take care of performance in that case.

Of course, as usual, tests for new functions are added.

I am curious about your comments @jnyrup @dennisdoomen.

@jnyrup
Copy link
Member

jnyrup commented Sep 24, 2018

I like this addition, it complements Given() which added lazy evaluation of subsequent assertions.

@dennisdoomen dennisdoomen merged commit 2dc2217 into fluentassertions:master Sep 25, 2018
@krajek krajek deleted the lazy_fail_with branch September 25, 2018 19:14
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.

3 participants