title: Moq: Exception to setup a mock with MockBehavior.Strict
body: <p>Is there a mechanism in Moq library to setup a particular method as Loose so that VerifyAll does not fail for that method.</p>
  
  <pre><code>[TestFixture]
  public class MockStrictException
  {
      [Test]
      public void exception_to_setup_strict()
      {
          var mock = new Mock&lt;ITest&gt;(MockBehavior.Strict);
          SetupAsPartOfTestSuite(mock);
  
          ITest subject = mock.Object;
          //Act
          subject.Called().Should().Be(10);
  
          mock.VerifyAll();
      }
  
      //Contrived example, however is actual usage there are setup helper methods
      //I understand it should not have been setup as strict 
      //but way too much effort to fix all test cases
      private static void SetupAsPartOfTestSuite(Mock&lt;ITest&gt; mock)
      {
          mock.Setup(x =&gt; x.Called()).Returns(10);
          //TODO: Is there a way to override this setup
          mock.Setup(x =&gt; x.NotCalled()).Returns(-10);
      }
  
      public interface ITest
      {
          int Called();
          int NotCalled();
      }
  }
  </code></pre>