December 2007 - Posts

The Record/Replay/Verify model by Rhino Mocks

Daniel and I are having an interesting discussion about mock frameworks, and he just posted this: What's wrong with the Record/Reply/Verify model for mocking frameworks . Daniel also pulled this quote from the Rhino Mocks documentation: Record &...

Moq: Mocking in C# 3.0 by Rhino Mocks

Daniel has a very interesting post about how mocking can works in C# 3.0 (I don't like the term Linq for Mock, if you haven't noticed). I wonder if he has used Rhino Mocks, from the description of mock frameworks in the post, it looks like he...

Don't like visibility levels, change that by Rhino Mocks

This came up with respect to MS MVC. The MS MVC team has decided to make some methods protected, and that makes testing using Rhino Mocks a bit of a pain. Let us assume that I want test that the call to ProductController.Index() will render the "index...

What should you test? by Test Driven Development

I just found myself writing this: [Test] public void When_resolving_using_framework_element_will_create_layout_using_resolver() { } The code that I want to test looks something like this: public void Register(FrameworkElement frameworkElement) { Register...
More Posts