-
-
Notifications
You must be signed in to change notification settings - Fork 108
fix: correct xUnit Assert.Same/NotSame conversion method names #4345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The xUnit migration code fixer was generating IsSameReference and IsNotSameReference, but the actual TUnit assertion methods are IsSameReferenceAs and IsNotSameReferenceAs. This fixes compilation errors (CS1061) when migrating xUnit tests that use Assert.Same() or Assert.NotSame(). Fixes #4333 Co-Authored-By: Claude Opus 4.5 <[email protected]>
SummaryFixes xUnit migration code fixer to generate correct method names for reference equality assertions ( Critical IssuesNone found ✅ Review NotesCorrectness Verified:
TUnit Rules Compliance:
Testing:
Both tests properly validate the complete migration including Verdict✅ APPROVE - Clean fix that resolves issue #4333 with proper test coverage and no rule violations. |
Summary
IsSameReference→IsSameReferenceAsandIsNotSameReference→IsNotSameReferenceAsTest plan
Assert_Same_Can_Be_ConvertedtestAssert_NotSame_Can_Be_ConvertedtestFixes #4333
🤖 Generated with Claude Code