I'm trying to do this (.net 2.0):
SetupResult.For(delegate { oFtpMock.FtpText("FTPPWD1"); }).Throw(new
ArgumentException("FTP1"));

But its not allowing it as FtpText is a void method. How do I get
round this?

Thanks a lot guys, just getting started with the mocking frameworks
(been writing mine by hand for a while) and still getting my head
round everything.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" 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/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to