April 2008 - Posts

Unit Testing Denial Pattern #1: Pretending the test is no longer valid by ISerializable - Roy Osherove's Blog : Agile

Today was both a good day for e and a bad day for me. Good day because I managed to get a full suite of tests that were somehow failing to work again after a refactoring that got out of hand. Bad - because out of all the tests, one of them failed. Here's...

Pros and Cons and of using an Auto Mocking container in your tests by ISerializable - Roy Osherove's Blog : Agile

In regards to my post about injecting mocks and stubs using a container in your tests, Dave asks in the comments: Why would you want to do this in the first place? Here are the things I can think about right now (pros and cons). I'd love to hear your...

Creating a AutoMockingContainer with Microsoft Unity - Pretty darn simple. by ISerializable - Roy Osherove's Blog : Agile

Just created a little Auto Mocking Container built on Microsoft Unity. It was very very simple. here's a test that uses it. We tell the container to RegisterMockSingleton becuase we will want whoever calls resolve<T> on that interface to get...
More Posts