I always seem to struggle to find examples of how to use MethodOptions in Rhino Mocks, so here is some code. Assume you have the following dependency: public interface IDependency { void SomeMethod(in… more →
Kash Farooq's blogwrote 4 weeks ago: Other possible titles include: Rhino Mocks 3.5 Public Key, Rhino Mocks 3.6 Public Key, Rhino Mocks S … more →
wrote 1 month ago: One of the common tasks I come across when doing TDD is mocking events. I’m a big fan of … more →
wrote 2 months ago: For the first time since I’ve been attending, and maybe since CRineta existed, we had two meet … more →
wrote 4 months ago: I always seem to struggle to find examples of how to use MethodOptions in Rhino Mocks, so here is so … more →
wrote 4 months ago: There are several ways to determine what was sent to your mock object. In this blog post I’ll … more →
wrote 5 months ago: Here is the simple ASP.NET MVC code I want to test. In a test, I need to mock the HttpContext so tha … more →
wrote 6 months ago: My pair and I discovered some unexpected behaviour with repeat times yesterday. It appears repeat ti … more →
wrote 10 months ago: While writing some tests for the following method I had a strange problem. When the test ran it thre … more →
wrote 11 months ago: I tried searching on this for a personal assignment but couldn’t locate one. So decided to cre … more →
wrote 11 months ago: Sometimes, during TDD, you come across a class that does not have an interface and therefore isn … more →
wrote 11 months ago: I have some code that uses Castle Windsor to retrieve instances this helps to manage dependencies th … more →
wrote 11 months ago: Rhino Mocks includes a couple of ways to ensure your dependencies are called with the correct data. … more →
wrote 1 year ago: With WCF self-hosting it is easy to substitute an external service dependency with a mock service. I … more →
wrote 1 year ago: I was recently introduced to the fluent interface that the Rhino Mocks library exposes. I wasn … more →
wrote 1 year ago: In part 4 I am going to look at extending the functionality of the user registration page. I am goin … more →
wrote 1 year ago: I am no mockist. But I had to upgrade myself on this for one of my clients. Below are the few links … more →
wrote 1 year ago: I have not posted here for a little the main reason being I have been putting the final touches to a … more →
wrote 1 year ago: Update: I have recently put together a much more detailed look at this in my obstacles of unit testi … more →
wrote 1 year ago: I was recently working on a scheduler object that relied on retrieving the current date and time to … more →