feat(migration): add Does.Match support and fix MSTest IsSameReferenceAs#4364
feat(migration): add Does.Match support and fix MSTest IsSameReferenceAs#4364
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 <noreply@anthropic.com>
…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 <noreply@anthropic.com>
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