Skip to content

Fix null message in internal static string? ExtendedMessage(string methodName, string? message, string actualExpression, string constraintExpression) #4432

Description

@OsirisTerje

Ref comment in PR #4430

The message comes from the _getExceptionMessageoverloads which are declared asFunc<string?>. Also there are some NUnit tests (e.g. LifeCycleAttributeTest) that pass in result.Messagewhich is also declaredstring?`.
If we want to change all that, I would do that in a separate PR.

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions