Lionel
unread,Sep 24, 2010, 12:31:14 PM9/24/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Moq Discussions
Hi all,
Is there any way to call the Setup method with a byref argument and
It.Is<T> ?
If I have the method
Inherit(ref Group parentGroup, [...])
to have something like:
mymock.Setup(f => f.Inherit(ref It.IsAny<Group>(), [...]));
Pitifully, I cannot really know in advance the value of the byref
parameter, so I don't think I can do the Setup with an explicit value
(I know the variable name of course, but not its content).
Many thanks in advance
Lionel