Geeks With Blogs
Annie Bougie August 2009 Entries
Using Delegates in Rhino Mocks With the .Do Statement
I use Rhino Mocks pretty much exclusively for mocking and testing. I find that there really isn't anything that I've wanted to do that I haven't been able to figure out how to accomplish with Rhino Mocks. What is everyone else using? I'd like to know so I can take a look. Anyway, as you know, with Expect.Call we can return property values, return values from functions, throw an error, etc. Sometimes just returning a static value isn't going to work, or it's just easier to give it some simple code ......

Posted On Friday, August 21, 2009 3:51 AM

Copyright © Annie Bougie | Powered by: