title: How can I test for calls ignoring params arguments in NSubstitute?
body: <p>I have code which looks like:</p>
  
  <pre><code>eventPublisher.Publish(new SpecificEvent(stuff),
                          EventStreams.Stream1,
                          EventStreams.Stream2);
  </code></pre>
  
  <p>which is calling a method defined as :</p>
  
  <pre><code>Publish&lt;T&gt;(T eventToPublish, params EventStream[] streams) where T : IEvent;
  </code></pre>
  
  <p>in something I want to test. This event publication is the most important thing to happen in what I want to test, but I am not interested in testing which event streams it publishes to. How can I make a substitute in NSubstitute to test that this is called with an appropriate event, without concerning myself with the params? Thus far, I have:</p>
  
  <pre><code>eventPublisher.Received(1).Publish(Arg.Any&lt;SpecificEvent&gt;());
  </code></pre>
  
  <p>This, of course, does not match the call with two streams. Is there a way to match a params argument using NSubstitute, ignoring the number of parameters passed in?</p>