Mocking framework that supports mocking a method with delegate as parameter
I was very happy with Moq until I needed to test a method that takes a delegate as parameter and got an UnsupportedException. The issue is also mentioned [here][1] and on Moq [issue list][2]. 

Is there any framework that supports this kind of mocking?

For example:

    /// 
    /// Interfaces
    ///

    public interface IChannelFactory<T> {
        TReturn UseService<TReturn>(Func<T, TReturn> function);
    }

    public interface IService {
        int Calculate(int i);
    }

    ///
    /// Test
    ///

    Mock<IChannelFactory> mock = new Mock<IChannelFactory>();

    // This line results in UnsupportedException
    mock.Setup(x => x.UseService(service => service.Calculate(It.IsAny<int>()))).Returns(10);


  [1]: http://stackoverflow.com/q/6302437/82047
  [2]: http://code.google.com/p/moq/issues/detail?id=300
Mocking framework that supports mocking a method with delegate as parameter
===

I was very happy with Moq until I needed to test a method that takes a delegate as parameter and got an UnsupportedException. The issue is also mentioned [here][1] and on Moq [issue list][2]. 

Is there any framework that supports this kind of mocking?

For example:

    /// 
    /// Interfaces
    ///

    public interface IChannelFactory<T> {
        TReturn UseService<TReturn>(Func<T, TReturn> function);
    }

    public interface IService {
        int Calculate(int i);
    }

    ///
    /// Test
    ///

    Mock<IChannelFactory> mock = new Mock<IChannelFactory>();

    // This line results in UnsupportedException
    mock.Setup(x => x.UseService(service => service.Calculate(It.IsAny<int>()))).Returns(10);


  [1]: http://stackoverflow.com/q/6302437/82047
  [2]: http://code.google.com/p/moq/issues/detail?id=300