Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support FluentAssertions! #572

Open
alvipeo opened this issue Sep 20, 2024 · 3 comments
Open

Please support FluentAssertions! #572

alvipeo opened this issue Sep 20, 2024 · 3 comments

Comments

@alvipeo
Copy link

alvipeo commented Sep 20, 2024

You have a very pretty testing lib here. But PLEASE use FluentAssertions.

@thomhurst
Copy link
Owner

You can bring fluent assertions in yourself as a dependency if you need to. Any reason why you think you can't?

@thomhurst
Copy link
Owner

I have also raised a PR to map FA exceptions to TUnit assertions here: fluentassertions/fluentassertions#2758

@Xen0byte
Copy link
Sponsor

Xen0byte commented Sep 23, 2024

You can bring fluent assertions in yourself as a dependency if you need to. Any reason why you think you can't?

Indeed, the assertion library can be completely independent from the test framework, and I should probably note that some people, myself included, do prefer TUnit.Assertions over FluentAssertions, and I do hope that they keep getting iterated on and not left on the backburner just because FluentAssertions exists.

I've said this on reddit and I'll say it here too, I really like how TUnit.Assertions start with Assert so that you can scan for them quickly in the code (as opposed to the Should in FluentAssertions which I highly dislike being so inconsistently located) but are also fluent, so TUnit.Assertions combines the best of both worlds that NUnit's constraint model and FluentAssertions bring.

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

No branches or pull requests

3 participants