title: Test that a nested function is called in a void method with moq
body: <p>I have an implementation of an interface and want to cover the methods in the implementation.  Most of the functions are void and do one thing and I want to test that a certain call is made but not sure exactly how to do it with mock</p>
  <p>FakeService.cs</p>
  <pre><code>public FakeService(IRepository&lt;FaketTable&gt; repo)
  
  public virtual void ClearAll()
  {
   this.fakeTablerepo.Truncate();
  }
  </code></pre>
  <p>I want to write a test to make sure Truncate was called. There is nothing returned so there is nothing to assert on.  Any help would be appreciated.</p>