title: Throw ExpectedException TimeoutException with Stub is not working c#
body: <p>I have this unit test, and I've been trying to throw an exception on it, but I'm not able to do it, please can you help me? </p>
  
  <pre><code>    [TestMethod]
      [ExpectedException(typeof(TimeoutException))]
      public async Task HandleAsyncDeleteModel_WhenRepositoryFails_ThrowsException()
      {
          //Arrange
          var token = new CancellationToken();
          var deleteModel = new DeleteProcessCommand(_img, _tnt, _pro, _url);
          var writeRepository = new StubIWriteRepository&lt;Dto&gt;()
          {
              DeleteIfExistsAsyncGuidGuidGuidCancellationToken = (img, tnt, pro, tkn) =&gt;
              { 
                  throw new TimeoutException();
              }
          };
  
          var Logger = new StubILogger();
          var commandHandler = new CommandHandler(Logger, writeRepository, null, null, null, null, null, null);
  
          //Act
          await commandHandler.HandleAsync(deleteModel, token);
      }
  </code></pre>