Skip to content

Failure message not in line with documentation #524

@thomasthiry

Description

@thomasthiry

I've been using Shouldly for some time now, but lately with my (dotnet core) projects and Shouldly 3.0.1 the failure messages are not as good as before. The name of the variable is not put anymore in the message.
for example for

employee.FirstName.ShouldBe("John"); // fails
--> message: "Dale" should be "John" but was not

When I expected something like this

employee.FirstName.ShouldBe("John"); // fails
--> message: FirstName should be "John" but was "Dale"

My question: is that on purpose or did I miss something? This is not in line with the documentation I think.
(it kinda diminishes my point when I try to convince people to use it :-) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions