Refactored this example to use a unit test instead of a console application.