Choosing a Mocking Framework

by 

|

|  

in

As we neared the end of our BizSpark license term here at Don’t Panic Labs, we had to make some big choices when it came to licensing Visual Studio. Through BizSpark we were using Visual Studio 2013 Ultimate, which gave us access to a lot of different features. One of which, Microsoft Fakes, was heavily…

Read more…

Testing Session in MVC in Four Lines of Code

by 

|

|  

in

Controller testing in the model-view-controller (MVC) is simple. ?The level of difficulty is increased with the use of Session in the controller, but only slightly. In this post I show how to simply test controllers which use Session. Let’s try testing this controller method: The following code (in a test project) will throw a null…

Read more…