fix: handle [Test(Description=...)] in NUnit migration code fixer#4427
fix: handle [Test(Description=...)] in NUnit migration code fixer#4427
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 <noreply@anthropic.com>
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