Browse by Tags

Syntactic Sugar for Thrown Exception Checking with Generics

Using attributes like [ExpectedException] can obscure intent because they apply to the whole method instead of a specific call you're checking. To make intent totally clear and prevent unexpected bugs, you should wrap just the statement you're expecting Read More...

Functional Programming and Unit Testing

These code samples are from: http://www.ayende.com/Blog/archive/2008/06/06/Scratching-an-itch-NMemcached.aspx public class SystemTime { public static Func<DateTime> Now = () => DateTime.Now; } At first I was wondering what the point of that was. Read More...

Good Overview of Types of Testing and TDD

Test-driven development, Unit Test, VSTS, NUnit, TestDriven.NET, whats all this? Good Overview of Types of Testing and TDD Share this post: Email it! | bookmark it! | digg it! | reddit! Read More...

Testing Theories Part 4 - TypeMock Isolator - The Dark Horse of Unit Testing?

Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures Read More...

Testing Theories Part 3 - IoC Containers (Castle Windsor, Spring.NET), AutoMocking Containers

Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures Read More...

Testing Theories Part 2 - Unit Testing with Inversion of Control Pro's/Con's

Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures Read More...

Testing Theories Part 1 - Classical vs Mock Testing

I'll begin a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures Read More...

Assigning Responsibilities

It’s All about Assigning Responsibilities This example really hit home for me. I am faced with a very similar legacy code design where some processing takes place and an e-mail is sent out. My current tests consist of integration tests that outright send Read More...

Promises and Paradigms

I've always tried to make it a point to read a lot about the industry and constantly shifting and improving methods and best practices. Sometimes the buzz dies down after a bit -- I was particularly amused to find people tired of the lofty promises of Read More...