am I able to mock/stub a method call with generic parameters (without
specifying the generic types) in Rhino Mocks 3.5?
I have the following interface which I want to stub
public interface IJsonMapper {
string ToJson<T, V>(IEnumerable<T> source, Converter<T, V> mapper);
}
now I want to stub this call, but don't have access to the generic
parameter V (it's an anonymous type inside the method of the SUT which
I want to test)
How can I do this?
IJsonMapper mapper = MockRepository.GenerateStub<IJsonMapper>();
mapper.Stub(x=>x.ToJson<?,?>(...).Return("some
string").IgnoreArguments();
the place where the question marks are make my brain smoke!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---