Skip to content

Do not recommend WithMessage instead of .Be #92

@cbersch

Description

@cbersch

Using WithMessage for checking exception messages might be benefitial in some cases, but not in general.
When I want to check the exact message, this fix shouldn't be suggested.
Currently, this issue is triggered when using one of Be, StartWith, EndWith, Contain on the exception message.

At least for Be it shouldn't trigger.

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