Unit Testing Sealed Internal Classes

As I wrote in my last post, I’m a big fan of clean, clear, simple unit-tests. Part of this involves figuring out where your “boundary” is and clarifying the limits of the code that you’re responsible for. Normally this is simple and straightforward, but ~sometimes~most of the time, trying to test a class with an unnecessary access modifier and limited construction options is going to end in frustration.

READ MORE »


AutoFixture, AutoMoq, and Unit Tests with Specimen Builders

I’m a big fan of unit-testing. I especially like unit testing that is simple, clean and easy to follow. It gives me a good feeling that the rest of the code that is behind the tests is easy to understand and easy to maintain, and whilst this isn’t always true, from my experience, it’s pretty close.

READ MORE »