Skip to content

Conversation

@thomhurst
Copy link
Owner

Summary

Test plan

  • Added tests for abstract classes with no subclasses (should NOT warn)
  • Added tests for abstract classes with subclasses missing [InheritsTests] (should warn)
  • Added tests for MacOS/OSX platform conversion (correct casing)
  • Added tests for unsupported platforms (Mono, Net) - should NOT convert
  • Added tests for mixed supported/unsupported platforms - should NOT convert
  • All existing tests pass

Fixes #4489
Fixes #4607
Related to #4484, #4485 (cannot fix - Roslyn limitation)

@claude
Copy link
Contributor

claude bot commented Jan 29, 2026

No issues found. Checked for bugs and CLAUDE.md compliance.

@claude
Copy link
Contributor

claude bot commented Jan 29, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

- Fix TUnit0059 false positive when abstract class has no subclasses (#4607)
  - Only warn when concrete subclasses exist but lack [InheritsTests]
  - Abstract classes designed for external consumption no longer trigger warnings

- Fix NUnit Platform attribute conversion generating invalid code (#4489)
  - Correct OS.MacOS casing to OS.MacOs to match enum
  - Unsupported platforms (Mono, Net, NetCore) now left unconverted
  - Add Browser/wasm platform support

- Add comprehensive test coverage for both fixes
Update migration guides to warn users that multi-targeting projects
can cause code fixer crashes due to a Roslyn limitation. Changed from
a "tip" to a "warning" and added clearer instructions with two options:
1. Specify --framework on command line
2. Temporarily modify project to single-target

Relates to #4484, #4485
@thomhurst thomhurst force-pushed the fix/code-fixer-issues-4489-4607 branch from b2264d1 to 5332931 Compare January 29, 2026 20:26
@thomhurst thomhurst enabled auto-merge (squash) January 29, 2026 20:33
@thomhurst thomhurst disabled auto-merge January 29, 2026 20:51
@thomhurst thomhurst merged commit 7e1fe2b into main Jan 29, 2026
12 of 13 checks passed
@thomhurst thomhurst deleted the fix/code-fixer-issues-4489-4607 branch January 29, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants