Unit Testing Sitecore

Unit testing is a very popular topic, and is a very good practice to adopt. Unfortunately, as anyone who has worked with it will know, some common Sitecore classes can’t be mocked or be directly instantiated. So, the logical solution is to let your unit tests access the Sitecore API and databases. This post contains some instructions on how I do this.