Skip to content

SingleResultBeforeMapTests: Assert.IsType with exactMatch false instead of IsAssignableFrom (xUnit2032) - #130

Merged
electricessence merged 1 commit into
masterfrom
fix/xunit2032-single-result-test
Nov 12, 2026
Merged

electricessence merged 1 commit into
masterfrom
fix/xunit2032-single-result-test

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

SingleResultBeforeMapTests: use Assert.IsType<T>(value, exactMatch: false) instead of Assert.IsAssignableFrom<T>(value), which the xUnit analyzers flag as xUnit2032 now that the tests build for net11.0.

Why

What

  • Two assertions change from Assert.IsAssignableFrom<IExecuteReaderAsync>(x) to Assert.IsType<IExecuteReaderAsync>(x, exactMatch: false). Same meaning (the value is, or derives from, that type); test-only; no library code or public API changes.

Checks

  • Release and Debug builds: 0 warnings, 0 errors. Tests: 9851 of 9851 pass on net11.0 and on net10.0 in Debug; in Release, net11.0 passed 9851 of 9851 on both runs and net10.0 passed on the re-run after one unrelated Dataflow timing test (ToTargetBlockMappedCompletionTests, target closed mid-stream) failed once in the first run. Samples: 105 of 105 checks pass. Style and analyzers: 0 findings. DocFX: 0 warnings.

🤖 Generated with Claude Code

…ad of IsAssignableFrom (xUnit2032)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit f1ee2d7 into master Nov 12, 2026
2 checks passed
@electricessence
electricessence deleted the fix/xunit2032-single-result-test branch November 12, 2026 15:32
electricessence added a commit that referenced this pull request Nov 12, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant