Ignoring generic argument, is it possible?

23 views
Skip to first unread message

Kjell

unread,
Jan 12, 2012, 10:51:39 AM1/12/12
to Rhino.Mocks
Hi

Is it possible to somehow ignore the generic argument for methods in
rhino mocks?

i.e. I have a method

public void DoSomething<T>() : where T:BaseT

In one test I want to ensure that DoSomething is being called on the
mock by my object under test.
I don't care what T is.

In other tests I want to stub the behaviour of DoSomething. I want the
same behaviour regardless of T.

Is this possible to accomplish, or do I have to assert/stub each
possible version of the generic?

Thanks
Reply all
Reply to author
Forward
0 new messages