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 Moq Discussions
I have a method with no return type that I want to mock. I don't want
the methods implementation to be executed. Is it bad practice to do
this? Or should setup only be called on methods which return values?
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 moq...@googlegroups.com
it's supported and fine.
btw, if you don't set the mock CallBase property to true, we don't call it by default, IIRC, so you don't need to make a setup just to avoid the call to the base class (as long as the method is virtual)
/kzu
-- Daniel Cazzulino | Developer Lead | XML MVP | Clarius Consulting | +1 425.329.3471