Click here to Skip to main content
Click here to Skip to main content

Simple.Mocking - new mocking framework for .NET 3.5

, 29 Nov 2009
Rate this:
Please Sign up or sign in to vote.
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);
 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 29 Nov 2009
Article Copyright 2009 by Mikael Waltersson
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid