DEV Community

Discussion on: Why We Test – Do things faster with Test-Driven Development

 
rainerhahnekamp profile image
Rainer Hahnekamp

Yeah, currently I am teaching Angular and Spring. So TypeScript and Java as programming language. Both have superior testing frameworks like Jasmine/Jest and JUnit & Friends (Mockito, Hamcrest,...).

Honestly, I think that all modern unit testing frameworks share the same mindset. So if you know how to write unit tests and handle mocks/spies properly in one language you can easily do the same in any other language.

Thread Thread
 
hilaberger92 profile image
Hila Berger

I agree, if you understand the principles of unit testing, you can write it in any language.
Have you heard about Typemock maybe? it's a mocking framework for C# and C++. My team and I are working with it and I'm looking for some feedback...

Thread Thread
 
rainerhahnekamp profile image
Rainer Hahnekamp

For C# I am using Moq. Is there any particular reason why you have chosen Typemock?

Thread Thread
 
hilaberger92 profile image
Hila Berger • Edited

We use Typemock Isolator. It's a user-friendly tool, that allows us to mock almost anything we need- private and static methods, constructors, ref and out parameters etc...it also integrates with a lot of unit testing frameworks such as NUnit and MSTest.
So far we are satisfied with the product, but I wanted to hear other people's opinions as well...