title: Can I unit test a method that makes Sitecore context calls?
body: <p>I'm working on a web application that is built over Sitecore CMS. I was wondering if we could unit test for example a method that takes some data from Sitecore makes some processing with it and spits out a result. I would like to test all the logic within the method via a unit test.</p>
  
  <p>I pretty confused after searching the internet wide and deep. Some say that this kind of testing is actually integration testing and not unit testing and I should test only the code that has no Sitecore calls, others say that this is not possible because the Sitecore context would be missing.</p>
  
  <p>I would like to ask for your help experienced fellow programmers:
  Can I unit test a method that contains Sitecore calls ? If YES, how ? If NO, why ? Is there any workaround ?</p>
  
  <p>The project is at its beginning, so there will be no problem in choosing between unit testing frameworks such as MSTest or Nunit, if it is the case that the solution is related to the unit testing framework of choice.</p>