Skip to content

Conversation

@dennisdoomen
Copy link
Member

The GenericEnumerableEquivalencyStep did not properly support the subject to be a non-generic collection.

Fixes #973

@dennisdoomen dennisdoomen requested a review from jnyrup November 18, 2018 21:22
}

[Fact]
public void When_the_expectation_is_not_a_multi_dimensional_array_it_should_throw()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Why is this test no longer valid?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because since v5, the expectation drives the type of comparison. Since it's a string, it'll never trigger the MultiDimensionalArrayEquivalencyStep

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.
Couldn't see how that test should be affected by the other changes in this PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't even understand how this entire bug only surfaced now.

@dennisdoomen dennisdoomen merged commit d25c795 into fluentassertions:master Nov 19, 2018
@dennisdoomen dennisdoomen deleted the fix973 branch November 19, 2018 08:08
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