-
-
Notifications
You must be signed in to change notification settings - Fork 108
fix: handle [Test(Description=...)] in NUnit migration code fixer #4427
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
NUnit's [Test] attribute supports properties like Description and Author that TUnit's [Test] attribute does not support. This change: - Extends NUnitAttributeRewriter to strip named properties from [Test] and [Theory] attributes (ConvertTestArguments) - Extends NUnitTestCasePropertyRewriter to extract Description/Author from [Test] attributes and convert them to [Property] attributes - Adds tests verifying using directive removal for NUnit.Framework and subnamespaces Fixes #4426 Co-Authored-By: Claude Opus 4.5 <[email protected]>
SummaryFixes #4426 by extending NUnit migration to handle Critical IssuesNone found ✅ Suggestions1. Consider handling
|
Summary
[Test(Description="...")]produces uncompilable codeNUnit's
[Test]attribute supports properties likeDescriptionandAuthorthat TUnit's[Test]attribute does not support. This change:NUnitAttributeRewriterto strip named properties from[Test]and[Theory]attributes viaConvertTestArguments()NUnitTestCasePropertyRewriterto extractDescriptionandAuthorfrom[Test]attributes and convert them to[Property]attributesNUnit.Frameworkand subnamespacesTest plan
[Test(Description="...")]is correctly converted🤖 Generated with Claude Code