Groups
Groups
Sign in
Groups
Groups
Rhino.Mocks
Conversations
About
Send feedback
Help
Ignoring generic argument, is it possible?
23 views
Skip to first unread message
Kjell
unread,
Jan 12, 2012, 10:51:39 AM
1/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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