DEV Community

Discussion on: Fake it by stubbing the mock, dummy

Collapse
 
meanin profile image
Paweł Ruciński • Edited

Hi, great post.

Test doubles are offered by multiple test frameworks, for me are nearly the same. I am working with .net, and found that all dummies, stubs, spies or mocks are offered by properly configured same object. There are multiple tools in .net world for usage in that purpose.

Personally I love to use Moq, it has nice syntax, very fluent. Also there are NSubstitute or Rhino. All of them are very similar, but I find best experience with Moq.

Furthermore, recently I created a TDD's walkthrough in .net. There are some exercises for creating and using test doubles :) If anyone try it, please leave me a note, how do you find it?