While writing some code I needed to be able to access the the App_Data directory in my ASPNET MVC app. Doing this usually involves a Server.MapPath, but this wont work for my unit test. Here’s how …
Featured in the Spaghetti Code Podcast
I was recently interviewed on the Spaghetti Code Podcast, hosted by Microsoft’s Jeff Brand. Jeff and I talked about Mocking and how it relates to the development process, testing process and your …
Continue Reading about Featured in the Spaghetti Code Podcast →
How to Use Rhinos AssertWasNotCalled
At times in the testing process you want to make sure that a certain method on a mocked object _does_not_ get called. For example, perhaps you’re performing some validation on a object and the object …
Continue Reading about How to Use Rhinos AssertWasNotCalled →