Skip to content

Migrate test framework from NUnit to xUnit#49

Merged
ianfnelson merged 1 commit intomainfrom
feat/xunit
Mar 3, 2026
Merged

Migrate test framework from NUnit to xUnit#49
ianfnelson merged 1 commit intomainfrom
feat/xunit

Conversation

@ianfnelson
Copy link
Owner

Summary

  • Replace NUnit 4.5 with xUnit 2.9.3 across all test files
  • Update dependencies in AdventOfCodeTests.csproj
  • Convert 56 test files from NUnit to xUnit syntax
  • Update test attributes: remove [TestFixture], replace [Test] with [Fact], convert [TestCase] to [Theory]/[InlineData]
  • Convert assertions to xUnit syntax with correct parameter ordering (Assert.Equal(expected, actual))
  • Update documentation in CLAUDE.md to reflect xUnit framework

Test Plan

  • ✅ All 182 tests passing
  • ✅ Build succeeds with 0 errors
  • ✅ Test filtering works correctly (--filter "FullyQualifiedName~Day5Tests")
  • ✅ Solution runs without issues

🤖 Generated with Claude Code

Replace NUnit 4.5 with xUnit 2.9.3 across all 56 test files. Update test attributes ([TestFixture] → auto-discovery, [Test] → [Fact], [TestCase] → [Theory]/[InlineData]) and convert assertions to xUnit syntax with correct parameter ordering (expected, actual). All 182 tests passing.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ianfnelson ianfnelson merged commit ed2fb85 into main Mar 3, 2026
1 check passed
@ianfnelson ianfnelson deleted the feat/xunit branch March 3, 2026 21:25
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.

1 participant