-
-
Notifications
You must be signed in to change notification settings - Fork 108
feat(migration): add Does.Match support and fix MSTest IsSameReferenceAs #4364
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
- Add Does.Match to convert to Matches() - Add Does.Not.Match to convert to DoesNotMatch() - Add Is.Matches to with-message version (was only in non-message) - Add tests for Does.Not.EndWith, Does.Match, Does.Not.Match patterns Co-Authored-By: Claude Opus 4.5 <[email protected]>
…igration The MSTest code fixer was using IsSameReference and IsNotSameReference but the actual TUnit assertions are named IsSameReferenceAs and IsNotSameReferenceAs. Co-Authored-By: Claude Opus 4.5 <[email protected]>
SummaryThis PR adds support for NUnit's Critical IssuesNone found ✅ Observations1. Recent Revert ContextThe latest commit on main (83744ec) is a revert of the exact feature this PR re-introduces. The revert message indicates that commit d7aa43d was problematic. Question: What issue caused the revert, and has this PR addressed it? 2. Code QualityThe changes are well-structured:
3. TUnit Rules Compliance
4. Test CoverageThe PR adds comprehensive test coverage:
All tests follow the existing pattern and verify both the analyzer detection and code fix transformation. Verdict✅ APPROVE - No critical issues, but recommend understanding why the previous version was reverted to ensure those issues don't reoccur. |
Summary
Does.MatchandDoes.Not.Matchconstraint support for migrationIs.Matchesto the with-message version in NUnit migrationIsSameReferenceAsandIsNotSameReferenceAs(was incorrectly usingIsSameReferenceandIsNotSameReference)Test plan
🤖 Generated with Claude Code