Skip to content

feat: handle null/empty async Because reasons#974

Merged
vbreuss merged 1 commit into
mainfrom
topic/update-because-to-handle-null
May 31, 2026
Merged

feat: handle null/empty async Because reasons#974
vbreuss merged 1 commit into
mainfrom
topic/update-because-to-handle-null

feat: handle null/empty async `Because` reasons

e4611f7
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 31, 2026 in 24s

Quality Gate failed

Failed conditions
2 New issues

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 16 in Tests/aweXpect.Core.Tests/Core/BecauseTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Argument of type 'Task<string>' cannot be used for parameter 'reason' of type 'Task<string?>' in 'ExpectationResult ExpectationResult.Because(Task<string?> reason)' due to differences in the nullability of reference types.

See more on https://sonarcloud.io/project/issues?id=Testably_aweXpect&issues=AZ58y0Md47GWV_L62MED&open=AZ58y0Md47GWV_L62MED&pullRequest=974

Check warning on line 92 in Tests/aweXpect.Core.Tests/Core/BecauseTests.cs

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Argument of type 'Task<string>' cannot be used for parameter 'reason' of type 'Task<string?>' in 'ExpectationResult<int> ExpectationResult<int, ExpectationResult<int>>.Because(Task<string?> reason)' due to differences in the nullability of reference types.

See more on https://sonarcloud.io/project/issues?id=Testably_aweXpect&issues=AZ58y0Md47GWV_L62MEE&open=AZ58y0Md47GWV_L62MEE&pullRequest=974