DEV Community

loading...

Discussion on: Unit testing: best practices

Collapse
hilaberger92 profile image
Hila Berger

Hi Elena, great article!I really enjoyed reading it :)
Which unit testing/mocking frameworks do you use?

Collapse
ice_lenor profile image
Elena Author

The project was mostly in C#. We had NUnit, MSTest, and Rhino Mocks.
For the part that was in Java, I think we had JUnit and Mockito, but here I'm not so sure - it was more than 2 years ago:)

Collapse
hilaberger92 profile image
Hila Berger

Were you satisfied with these frameworks?
Have you heard about Typemock by any chance?

Thread Thread
ice_lenor profile image
Elena Author • Edited

I liked the C# ones - they were rather easy to use and rich in features at the same time. I.e., you can "expect" how many times a certain function is called, or make your mock return different values on different calls (although the syntax for that wasn't very easy).

I don't think I tried Typemocks, so can't say anything about it, unfortunately.

Thread Thread
hilaberger92 profile image
Hila Berger

Thanks!
I'm asking because my team and I are working with Typemock, and your article made me realize how powerful it is.

Thread Thread
ice_lenor profile image
Elena Author

Oh how nice:)) happy I helped!

Forem Open with the Forem app