title: .NET Core Moq Params array in setup
body: <p>I am trying to use Moq to mock a reponse from a method which uses the params keyword with an int array</p>
  
  <pre><code>public interface IValidationHelper
  {
      Task&lt;bool&gt; ValidateParents(params int?[] parents);
  }
  </code></pre>
  
  <p>I am findning myself having to mock it in two ways to get it to properly mock.  First, with a single param, and second, with two params.
  Is there a way to specify something like params in a It.IsAny in the Setup?</p>
  
  <pre><code>private void MockValidateParents(bool valid = true)
  {
      _validationHelper.Setup(x =&gt; x.ValidateParents(
          It.IsAny&lt;int&gt;()
      )).ReturnsAsync(valid);
  
      _validationHelper.Setup(x =&gt; x.ValidateParents(
          It.IsAny&lt;int&gt;(),
          It.IsAny&lt;int&gt;()
      )).ReturnsAsync(valid);
  }
  </code></pre>