title: Should I mock all the dependencies when unit testing?
body: <p>My class has a dependency which I mocked in my unit tests. I was getting a null reference exception in a place where it didn't make much sense to me.</p>
  
  <p>I just realised it was because I didn't set up my mocked dependency. This dependency is tested but it doesn't connect to anything like file system or data sources.</p>
  
  <p>I only wanted to test my new code in this new class but I guess in this case it is better <strong>not</strong> to mock at all.</p>
  
  <p>Is this conclusion correct?</p>