Repository navigation
Remove nullable and assertion warnings from unit tests - #7670
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ReviewThis is a test-only warning cleanup, and I found no blocking issues.
Two optional notes:
Looks good to merge once CI is green. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
[Low impact] The PR appears safe to merge. SummaryThis PR removes nullable-reference and assertion-style warnings from unit tests.
No actionable issues found. Builds and tests were not run during this review. Reviews (1) · Last reviewed commit: "Remove unit-test nullable and assertion ..." · Reviewed by Greptile |
|
Promoted to ready after positive Claude and Codex verdicts on b2bd83f; all review surfaces have no blocking findings or unresolved threads. The optional helper suggestion is unnecessary for this warning cleanup. Promotion preserved the head. Waiting for fresh Claude review run 42095868415 and ready-state CI before enabling auto-merge. |
Review: PR 7670This is a tests-only cleanup with no shipped code changes. I read the diff but didn't build or run anything, so I'm relying on the PR's reported zero-warning build and its targeted test runs. What I checked:
Nit, not blocking: the LGTM. |
Unit-test builds emitted nullable-reference and assertion-style warnings that obscured new diagnostics. Use void-returning async exception assertions, guard optional test metadata before initialization, and use dedicated null/boolean assertions. Replace constant success assertions with completed fixture bodies or explicit no-throw checks, while preserving the empty-source fixture's failure if it executes.
Also replace newly present boolean comparison warnings in PlaywrightEnvironmentTests and obsolete count assertions in SharedObjectDisposeSpanTests.
Validation:
dotnet build tests/TUnit.UnitTests -f net10.0: zero warnings and errors after the changes; baseline reproduced the reported diagnostics.git diff --checkpassed. No shipped public API or generator output changes. Engine.Tests was not run, per repository instructions.Closes #7438
Summary by CodeRabbit