title: How do I raise an event when a method is called using Moq?
body: <p>I've got an interface like this:</p>
  
  <pre><code>public interface IMyInterface
  {
      event EventHandler&lt;bool&gt; Triggered;
      void Trigger();
  }
  </code></pre>
  
  <p>And I've got a mocked object in my unit test like this:</p>
  
  <pre><code>private Mock&lt;IMyInterface&gt; _mockedObject = new Mock&lt;IMyInterface&gt;();
  </code></pre>
  
  <p>I want to do something like this:</p>
  
  <pre><code>// pseudo-code
  _mockedObject.Setup(i =&gt; i.Trigger()).Raise(i =&gt; i.Triggered += null, this, true);
  </code></pre>
  
  <p>However it doesn't look like <code>Raise</code> is available on the <code>ISetup</code> interface that gets returned. How do I do this?</p>