title: MOQ - check a method is called with only specific parameters
body: <p>I have a method that assigns some values to a dictionary, and in my Moq test I want to ensure that it is <em>only</em> called with a specific set of parameters (i.e., strings).</p>
  
  <p>I've tried a variety of things - Setup, SetupSet, VerifySet, etc. They all let me ensure that a method is called with the parameters I want, which is fine. But how do I verify that it wasn't called with anything else? None of the above methods will catch this scenario.</p>
  
  <p>I tried to use It.IsInRange to specify which params were ok, but that only accepts ints so for a dictionary lookup is not much use.</p>
  
  <p>Thanks,</p>
  
  <p>Alex</p>