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

Ensure that chained assertion calls are ignored when the preceding one fails #1325

Merged
merged 4 commits into from May 16, 2020

Conversation

dennisdoomen
Copy link
Member

@dennisdoomen dennisdoomen commented May 9, 2020

When the initial assertion run through the AssertionScope failed, the chaining API would not ignore any following calls to Given, FailWith, etc.

Fixes #1302

  • Add release notes

@dennisdoomen dennisdoomen force-pushed the Fix/ChainingApi branch 5 times, most recently from f4b455b to 22f39e3 Compare May 14, 2020 20:16
@dennisdoomen dennisdoomen changed the title Ensure that chained assertion calls are ignore when the preceeding one fails Ensure that chained assertion calls are ignored when the preceding one fails May 14, 2020
@dennisdoomen dennisdoomen marked this pull request as ready for review May 14, 2020 20:17
@dennisdoomen dennisdoomen requested a review from jnyrup May 14, 2020 20:17
While practicing TDD, I often have a block of TODO comments listening the scenarios I think I need to cover. This should not cause compiler errors.
docs/_pages/releases.md Outdated Show resolved Hide resolved
Src/FluentAssertions/Execution/Continuation.cs Outdated Show resolved Hide resolved
Src/FluentAssertions/Execution/ContinuedAssertionScope.cs Outdated Show resolved Hide resolved
Src/FluentAssertions/Execution/ContinuedAssertionScope.cs Outdated Show resolved Hide resolved
Src/FluentAssertions/Execution/ContinuedAssertionScope.cs Outdated Show resolved Hide resolved
Src/FluentAssertions/Execution/GivenSelector.cs Outdated Show resolved Hide resolved
Src/FluentAssertions/Execution/GivenSelector.cs Outdated Show resolved Hide resolved
Src/FluentAssertions/Execution/ContinuedAssertionScope.cs Outdated Show resolved Hide resolved
Src/FluentAssertions/Execution/GivenSelector.cs Outdated Show resolved Hide resolved
docs/_pages/releases.md Outdated Show resolved Hide resolved
@jnyrup
Copy link
Member

jnyrup commented May 16, 2020

Nice changes, and a breeze to review due to your diligent splitting of commits

When the initial assertion run through the AssertionScope failed, the chaining API would not ignore any following calls to Given, FailWith, etc.
@dennisdoomen dennisdoomen merged commit 0c1f83e into fluentassertions:develop May 16, 2020
@dennisdoomen dennisdoomen deleted the Fix/ChainingApi branch May 16, 2020 20:06
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.

InvalidCastException from EqualityComparerEquivalencyStep
2 participants