title: Why is JustMock claiming my mocked method is never getting called?
body: <p>I have the following code in my application:</p>
  
  <pre><code>public class DirectoryCrawler
  {
      private IPathWrap _path;
      private IDirectoryWrap _directory;
      private ITrackedFileStore _trackedFileStore;
      private IFileWrap _file;
  
      public DirectoryCrawler(IPathWrap path, ITrackedFileStore trackedFileStore, IDirectoryWrap directory, IFileWrap file)
      {
          _path = path;
          _trackedFileStore = trackedFileStore;
          _directory = directory;
          _file = file;
      }
  
      public void CheckDirectoryContents(string baseDirectory)
      {
          var trackedFiles = _trackedFileStore.GetTrackedFilesInPath(baseDirectory);
      }
  }
  </code></pre>
  
  <p>I'm unit testing it via:</p>
  
  <pre><code>[TestClass]
  public class DirectoryCrawlerTests
  {
      private MockingContainer&lt;DirectoryCrawler&gt; _mockContainer;
  
      [TestInitialize]
      public void Setup()
      {
          _mockContainer = new MockingContainer&lt;DirectoryCrawler&gt;();
      }
  
      [TestMethod]
      public void Requests_Tracked_Files_In_Path()
      {
          var instance = _mockContainer.Instance;
          instance.CheckDirectoryContents("C:\\Test");
  
          _mockContainer.Assert&lt;ITrackedFileStore&gt;(x =&gt; x.GetTrackedFilesInPath(Arg.IsAny&lt;string&gt;()), Occurs.Once());
      }
  }
  </code></pre>
  
  <p>However, the assert is failing claiming <code>Result Message:    Occurrence expectation failed. Expected exactly 1 call. Calls so far: 0</code></p>
  
  <p>Why is JustMock not detecting the occurrence correctly?  This is with the latest JustMock lite Nuget package (2014.1.1317.4)</p>