DEV Community

Hila Berger
Hila Berger

Posted on

Which unit testing framework do you use?

My team and I started unit testing recently and we're looking for a good framework for C/C#/C++.
I am curious to know: do you perform unit testing? if so, which unit testing framework do you use and why?

Oldest comments (3)

Collapse
 
alinp25 profile image
Alin Pisica

Minunit. Simple and gets the job done.

Collapse
 
nickytonline profile image
Nick Taylor

It's been a couple of years since I did any C#, but Fluent Assertions is a great assertion framework. And for unit tests I believe it was still NUnit we were using.

You can also do some neat things with the Roslyn compiler in terms of validating things in tests, e.g. .configureAwait(false) for async/await. Been a while though, so a little fuzzy in my head... 😉

Collapse
 
markschweiger15 profile image
Mark Schweiger

We are using NUnit at the moment and considering porting to xUnit.
As for mock frameworks, we use Moq on our current project, and for our legacy code, we used Typemock.

Haven't done much C/C++ lately but I recall that googletest was our tool of choice.