-
Notifications
You must be signed in to change notification settings - Fork 731
Closed
Labels
Milestone
Description
Description
When chaining into an assertion using Which the failure message can be confusing, when the inner assertion fails, as the determined caller identity is from the outer assertion.
Complete minimal example reproducing the issue
var languages = new[] { "C#" };
languages.Should().ContainSingle()
.Which.Should().EndWith("script");Expected behavior:
Some nice message about "C#" not ending with "script".
Actual behavior:
Expected languages to end with "script", but "C#" is too short.
Versions
- latest version of develop: ee0aa43
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done