Simple.Mocking - new mocking framework for .NET 3.5





5.00/5 (2 votes)
http://simpled...
http://simpledotnet.codeplex.com/[^]
Tired of unnecessary complex mocking framework with cumbersome record/replay syntax which makes your test code hard to read? Try Simple.Mocking.
* Can mock/fake any interface or delegate
* Refactor friendly syntax, no "magic string" (except for event add/remove)
* No record/replay
* Easy to learn, small API
Example:
var myObject = Mock.Interface<IMyObject>(); Expect.Once.MethodCall(() => myObject.MyMethod(Any<int>.Value)).Returns(0); objectUnderTest.DoSomeThing(myObject); AssertExpectations.IsMetFor(myObject);