Reputation: 933
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.
Upvotes: 4
Views: 2326
Reputation: 13666
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.
Upvotes: 8