Skip to content

Conversation

@thomhurst
Copy link
Owner

Summary

  • Add Assert.Warn handling for NUnit migration - converts to Skip.Test($"Warning: {message}") since TUnit doesn't have a direct warning equivalent
  • Add test coverage for Is.Positive, Is.Negative, Is.Not.Positive, and Is.Not.Negative patterns which were implemented but lacked tests

Test plan

  • All 104 NUnit migration tests pass
  • New NUnit_Warn_Converted test validates Assert.Warn conversion
  • New NUnit_Is_Positive_Converted, NUnit_Is_Negative_Converted, NUnit_Is_Not_Positive_Converted, NUnit_Is_Not_Negative_Converted tests validate positive/negative patterns

🤖 Generated with Claude Code

thomhurst and others added 2 commits January 13, 2026 15:40
Converts NUnit's Assert.Warn() to Skip.Test() with "Warning: " prefix.
NUnit's Assert.Warn outputs a warning but allows the test to continue.
Since TUnit doesn't have a direct equivalent, this converts to a skip
with a warning prefix so users can identify and handle these cases.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Adds test coverage for NUnit's Is.Positive and Is.Negative constraints,
including their negated forms (Is.Not.Positive, Is.Not.Negative). These
patterns were already implemented but lacked test coverage.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@thomhurst
Copy link
Owner Author

Test review

@thomhurst
Copy link
Owner Author

PR Review for #4363

Summary: Adds Assert.Warn support for NUnit migration (converts to Skip.Test with warning prefix) and adds test coverage for Is.Positive/Negative patterns.

Critical Issues: None found

Suggestions: String interpolation creates unnecessary nested braces in CreateWarnAssertion. The method produces output with nested braces which works but is aesthetically suboptimal. However, this is functionally correct and follows existing patterns.

Verdict: APPROVE - No critical issues found. Implementation follows existing patterns, includes comprehensive test coverage.

@thomhurst thomhurst merged commit 7096556 into main Jan 13, 2026
14 checks passed
@thomhurst thomhurst deleted the feat/migration-warn-positive-negative branch January 13, 2026 16:41
This was referenced Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants