@khalidabuhakmeh xUnit mostly, sometimes MSTests.
I am doing more and more TDD.
@khalidabuhakmeh xUnit mostly, sometimes MSTests.
I am doing more and more TDD.
@khalidabuhakmeh I really dislike nunit. It makes it too easy to focus on doing things that lead to bad tests.
The SetUp methods lead to hidden context. It's fine sometimes, but too many people use it for all code they want in every test. It's always a point of problems in suites that use nunit.
Not that xunit handles fixtures/context perfectly, but at least it makes you put in a bit of work to point the gun at your foot.
@jakecarpenter @khalidabuhakmeh
Interesting. I was interested in the differences between the two recently. Can you describe more, or do you have any links about it?
They touch on the topic in the xunit documentation and in linked blog posts: https://xunit.net/docs/why-did-we-build-xunit-1.0
I'm sure a bit of googling around "shared unit test setup" would yield a lot of opinions similar to mine as well.