title: How can I make AutoMoqCustomization use Strict MockBehavior?
body: <p>Using AutoFixture with the AutoFixture.AutoMoq package, I sometimes find tests that weren't configured to correctly test the thing they meant to test, but the problem was never discovered because of the default (Loose) Mock behavior:</p>
  
  <pre><code>public interface IService
  {
      bool IsSomethingTrue(int id);
  }
  
  void Main()
  {
      var fixture = new Fixture()
          .Customize(new AutoMoqCustomization());
      var service = fixture.Freeze&lt;Mock&lt;IService&gt;&gt;();
      Console.WriteLine(service.Object.IsSomethingTrue(1)); // false
  }
  </code></pre>
  
  <p>I'd like to make Mocks get created with Strict behavior, so we're forced to call <code>Setup()</code> for the methods we expect to be called. I can do this for each individual mock like this:</p>
  
  <pre><code>fixture.Customize&lt;Mock&lt;IService&gt;&gt;(c =&gt; c.FromFactory(() =&gt; new Mock&lt;IService&gt;(MockBehavior.Strict)));
  </code></pre>
  
  <p>But after combing through source code for AutoMoqCustomization() and the various <code>ISpecimenBuilder</code> and other implementations, I'm pretty lost as to the best way to just make all Mocks get initialized with strict behavior. The framework appears to be very flexible and extensible, so I'm sure there's a simple way to do this--I just can't figure out how.</p>