title: Should I use mocking in production code?
body: <p>I have a situation where I need to <a href="http://en.wikipedia.org/wiki/Mock_object" rel="noreferrer">mock</a> some code in production. This is for making one part of code, work in half functionality.  </p>
  
  <p>I have to choose to write an empty classes (to implement the interface) , or use a mocking system like moq.  </p>
  
  <p>So the question is, do the mocking systems <strong>hit the performance</strong>, or <strong>break some readability</strong> of the production code?</p>
  
  <p><strong>update</strong><br>
  example:<br></p>
  
  <pre><code>interface IRocketSystem
  {
     void LaunchTheRocket();
  }
  
  class SimulationRocketSystem:IRocketSystem
  {
  ...
  }
  
  class RocketSystem:IRocketSystem
  {
  ...
  }
  </code></pre>
  
  <p>i found that i have a SimulationRocketSystem classes in production, that small and don't have a lot in the body. the mock system is have one line of code ( <em>new Mock &lt; IRocketSystem >().Object</em> ) to replace classes like this.</p>
  
  <p><strong>the pros for mocking:<br></strong>
  less empty classes in project.<br></p>