Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 11, 2025

Summary

Migrates the test suite from xUnit with FluentAssertions to NUnit 4.

Changes

  • Replace xUnit test framework with NUnit 4.3.2
  • Remove FluentAssertions dependency entirely
  • Convert all test attributes: [Fact][Test], [Theory][TestCase]
  • Convert all assertions to NUnit constraint model:
    • Assert.EqualAssert.That(actual, Is.EqualTo(expected))
    • Assert.True/FalseAssert.That(x, Is.True/False)
    • Assert.NotNullAssert.That(x, Is.Not.Null)
    • Assert.ContainsAssert.That(collection, Does.Contain(item))
    • Assert.EmptyAssert.That(collection, Is.Empty)
  • Convert IDisposable patterns to [SetUp]/[TearDown]
  • Add proper disposal for IDisposable fields per NUnit1032
  • Fix ImmutableArray assertions (use Length not Count, remove null checks)

Test plan

  • All 762 tests passing
  • Build succeeds with 0 errors

@dependabot dependabot bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Dec 11, 2025
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link

@recurseml recurseml bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by RecurseML

🔍 Review performed on 0a57a7c..1bd208b

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (1)

Directory.Packages.props

dependabot bot and others added 2 commits December 12, 2025 20:13
---
updated-dependencies:
- dependency-name: FluentAssertions
  dependency-version: 8.8.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
- Replace xUnit test framework with NUnit 4.3.2
- Remove FluentAssertions dependency entirely
- Update Directory.Packages.props with NUnit package references
- Convert all test attributes: [Fact] → [Test], [Theory] → [TestCase]
- Convert all assertions to NUnit constraint model:
  - Assert.Equal → Assert.That(actual, Is.EqualTo(expected))
  - Assert.True/False → Assert.That(x, Is.True/False)
  - Assert.NotNull → Assert.That(x, Is.Not.Null)
  - Assert.Contains → Assert.That(collection, Does.Contain(item))
  - Assert.Empty → Assert.That(collection, Is.Empty)
- Convert IDisposable patterns to [SetUp]/[TearDown]
- Add proper disposal for IDisposable fields per NUnit1032
- Fix ImmutableArray assertions (use Length not Count, remove null checks)
- All 762 tests passing
@jas88 jas88 force-pushed the dependabot/nuget/FluentAssertions-8.8.0 branch from 1bd208b to b2f3aa5 Compare December 13, 2025 02:48
@jas88 jas88 changed the title Bump FluentAssertions from 6.12.1 to 8.8.0 Migrate tests from xUnit+FluentAssertions to NUnit 4 Dec 13, 2025
@sonarqubecloud
Copy link

@jas88 jas88 merged commit 26b2105 into main Dec 13, 2025
6 checks passed
@dependabot dependabot bot deleted the dependabot/nuget/FluentAssertions-8.8.0 branch December 13, 2025 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants