moq
Home Page
Categories: Testing
Latest version: 3.0 Beta
Added 2008-01-30Updated 2009-02-05
Mocking library for developed from scratch to take advantage of .NET 3.5 (e.g. LINQ expression trees) and C# 3.0 features (e.g. lambda expressions).
Features include:
- Strongly-typed: no strings for expectations, no object-typed return values or constraints
- VS intellisense integration: everything supports full VS intellisense, from setting expectations, to specifying method call arguments, return values, etc.
- No Record/Reply idioms to learn. Just construct your mock, set your expectations, use it and optionally verify them
- Granular control over mock behavior with a simple enumeration
- Mock both interfaces and classes
- Override expectations: can set default expectations in a fixture setup, and override as needed on tests
- Pass constructor arguments for mocked classes
- Intercept and raise events on mocks
- Support for out/ref arguments
 Built for .NET 2 |
 Library |
 Free or free version available |
 Source code provided |