Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to choose between Shouldly and FluentAssertions? [closed]

What are the differences (if any) between Shouldly and FluentAssertions?

Can either do anything that the other one can't? Or are they functionally the same with just a different syntax?

The only other post I can find on this is from 2013. It's now 2022 and both products have moved on a lot since then so I figured I would re-ask the question.

like image 274
GoldieLocks Avatar asked Sep 16 '25 00:09

GoldieLocks


1 Answers

It's 2025 and now that we need to pay for FluentAssertions (business use), I choose Shouldly.

It's different but not that different.

Library Example
FluentAssertions someValue.Should().Be(true);
Shouldly someValue.ShouldBe(true);

BTW, Shouldly is not dead and is still active. Let's provide constructive feedback and make it even better.

like image 62
Andrew KeepCoding Avatar answered Sep 19 '25 11:09

Andrew KeepCoding