Skip to content

Review messages used in Assert calls #17521

@philwebb

Description

@philwebb

Currently we tend to call assert with message like this:

Assert.notNull(fooBar, "FooBar must not be null");

Framework actually uses two different styles of message which mean slightly different things. A message "FooBar must not be null" refers to a type called FooBar. A message "'fooBar' must not be null" refers to the parameter or property name and is used when there is no useful explicit type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions