title: Moq a void method
body: <p>I'm trying to work out how this Mock (using the Moq framework) stuff all works, but I've become a bit confused with methods that return void. </p>
  
  <p>The original object has the following methods/properties:</p>
  
  <pre><code>void Add(Person entity);
  void Save();
  IQueryable&lt;Person&gt; Persons;
  </code></pre>
  
  <p>The Add method calls <code>InsertOnSubmit</code> (it's Linq to sql), and the Save method calls <code>Context.SubmitChanges()</code>. The Person's property returns the <code>Table&lt;News&gt;</code> object.</p>
  
  <p>I'm not sure how I go about mocking these methods however, as I obviously can't use <code>Returns()</code>.</p>
  
  <p>Or does my design mean that I can't actually Mock the objects properly?</p>