Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for the best opensource Mocking framework for .net

Tags:

.net

mocking

I know this is fairly subjective, but I'm diving into testing and learning about mocking, and I'm trying to figure which framework I should use. If you could please tell me which ones you recommed and most importantly why it's better than others you've used I would aprpeciate. Or if anyone knows where I can get a side-by-side comparison that would aslo be helpful.

like image 429
Micah Avatar asked Apr 30 '09 15:04

Micah


People also ask

What is mocking framework C#?

Mocking is a process that allows you to create a mock object that can be used to simulate the behavior of a real object. You can use the mock object to verify that the real object was called with the expected parameters, and to verify that the real object was not called with unexpected parameters.

Is MOQ open source?

The Moq framework is an open source unit testing framework that works very well with .

Is JustMock free?

Telerik JustMock offers commercial (JustMock) and free (JustMock Lite) versions.

What are mocking frameworks?

What is a mocking framework? Mocking frameworks are used to generate replacement objects like Stubs and Mocks. Mocking frameworks complement unit testing frameworks by isolating dependencies but are not substitutes for unit testing frameworks.


1 Answers

Moq is the most advanced. It uses all features of .NET 3.5 and C# 3.0. This would be interesting:

  • Moq: Linq, Lambdas and Predicates applied to Mock Objects
  • Comparing Moq to Rhino Mocks
  • TDD : Introduction to Moq
like image 163
eu-ge-ne Avatar answered Nov 15 '22 08:11

eu-ge-ne