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 day to day coding. You can download the files from the SlickThought website here or from ITunes here. * I’m not sure if…
Continue Reading »
As I stated in the session “Testing with Mocks”, I would post the code and presentation to this blog. Download the code and the presentation as a zip file below. Thank you for coming to the talk! If you have any questions please let me know. *NOTE* You will need to install TypeMock Isolator for…
Continue Reading »
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 fails the validation rules. At this point you’d want the call to pop back up the stack to the caller…
Continue Reading »
Unit testing ActionResults is fairly easy yet JsonResults can pose a problem. I’ve seen a few ways to do this and they just seemed like “too much” to me. So here’s a way that I’ve devised that works very well. Its sort of has a “hack” feel to it, but it works perfectly. Controller Action:…
Continue Reading »
As stated here the Spark View Engine’s Visual Studio Integration does not support the ReSharper intellisense code complete mode. This is a HUGE issue for me as I use a lot of ReSharper templates. Turning off the ReSharper code completion slows me to a crawl because the ReSharper templates no longer work. Major bummer. However,…
Continue Reading »