65.9K
CodeProject is changing. Read more.
Home

Simple.Mocking - new mocking framework for .NET 3.5

starIconstarIconstarIconstarIconstarIcon

5.00/5 (2 votes)

Nov 29, 2009

CPOL
viewsIcon

11319

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);