I used Rhino.Mocks, currently actively writing some Java tests using EasyMocks. However, I was not able to pull the equivalent of LastCall.IgnoreArguments () Rhino.Mocks into EasyMocks.
How to use Easy Mocks to return a value regardless of method arguments.
For example:
public interface ISoothSayer {
String SaySomethingSweet(String sweetMsg);
}
how I mock this interface to return "Hell Oh World", regardless of the argument, sweetMsg.
source
share