Skip to content

Replace FluentAssertions with xunit assertions - #3

Merged
jacalapa merged 1 commit into
mainfrom
test/drop-fluentassertions
Oct 12, 2026
Merged

jacalapa merged 1 commit into
mainfrom
test/drop-fluentassertions

Conversation

@jacalapa

Copy link
Copy Markdown
Contributor

What

  • Replaces FluentAssertions with plain xunit Assert in the unit and the shared storage tests (105 assertions) and drops the package. FluentAssertions 8 has a commercial license.
  • Where xunit behaves differently, the conversion keeps FluentAssertions' meaning:
    • Throw<T> became ThrowsAny<T>, which also accepts derived exceptions.
    • The three BeEquivalentTo checks on string and enum lists sort both sides and compare with Assert.Equal, so they stay order-insensitive with an exact count.
    • The "because" reasons in ConcurrencyTestsBase are kept as comments.

Tests

  • Same counts as main: unit 57, PostgreSQL 37, SQL Server 37, all passing locally.

FluentAssertions 8 is distributed under a commercial license, so the test
projects now use the built-in xunit Assert API instead and the package is
removed from central package management.
@jacalapa
jacalapa merged commit f8bb782 into main Oct 12, 2026
3 checks passed
@jacalapa
jacalapa deleted the test/drop-fluentassertions branch October 12, 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

Development

Successfully merging this pull request may close these issues.

1 participant