Frameworks
Moq
Posted December 18th, 2007
in
Description:
Mocking library for .NET built taking full advantage of .NET 3.5 (i.e. Linq expression trees) and C# 3.0 features (i.e. lambda expressions).
Summary:
Moq (pronounced "Mock-you" or just "Mock") is the only mocking library for .NET developed from scratch to take full advantage of .NET 3.5 (i.e. Linq expression trees) and C# 3.0 features (i.e. lambda expressions) that make it the most productive, simple, type-safe and refactoring-friendly mocking library available. And it supports mocking interfaces as well as classes.
Built in collaboration with Clarius and Instedd, the library was created mainly for developers who aren't currently using any mocking library (or are displeased with the complexities of some other implementation), and who are typically manually writing their own mocks (with more or less "fanciness"). Most developers in this situation also happen to be quite pragmatic and adhere to state (or classic) TDD.