Unit Testing in Sitecore using Nunit with Sitecore Context information

Few months back, we were doing R&D to implement Unit Testing for our Sitecore project. We tried different kind of solutions like Miscosoft’s Unit Testing Template which we can create from Visual Studio directly and Nunit for which you can install Nuget Package from Visual Studio.

Both has all the functionality that we require in Unit Testing with some different gesture. Microsoft’s Unit Testing project can easily be run from Visual Studio itself and there are couple of ways to run Nunit either by command line or using GUI. I would not go into detail of implementing it.

Continue reading “Unit Testing in Sitecore using Nunit with Sitecore Context information”