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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With