Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mocking tools for C# on .NET [closed]

I'm new to C#/.NET but I've been doing TDD for quite some time now. I want to know what is the best framework that can be used for mocking objects while writing tests in C#?

like image 752
gprasant Avatar asked Feb 27 '23 09:02

gprasant


1 Answers

Popular options

  • Rhino
  • Moq
  • TypeMock Isolator

Moq and Rhino are both regular mock/stub framework. TypeMock Isolator is a bit special, as it modifies the IL to allow mocking of types you have no control over. Some like this a lot. Others feel it is too intrusive.

like image 138
Brian Rasmussen Avatar answered Mar 08 '23 11:03

Brian Rasmussen