Thanks for idea . if I make all public members of this derived (wrapping)
class virtual, will this class be "mockable" as if it has "mockable"
interface, or there will be some problems ?

 

O :-)

 

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Chris Missal
Sent: Tuesday, August 04, 2009 6:51 AM
To: [email protected]
Subject: [RhinoMocks] Re: Unexpected method call on mocked class

 

I would wrap it in a class that I can control. Even if you're just calling
base.Method() on each of them, at least you can make assertions on it.

2009/8/3 <[email protected]>


Unfortunately method aren`t virtual. Class which cause the problem is
"Command" in WPF. I use it with MVVM design pattern and in UnitTest I want
to check "what model do" with this class. Problem is that class is in
third-party library and doesn`t implement interface usable for mocking. Does
anybody have idea what to do it ?

O :-)

From: [email protected] [mailto:[email protected]] On
Behalf Of Ayende Rahien
Sent: Thursday, July 30, 2009 7:39 PM
To: [email protected]
Subject: [RhinoMocks] Re: Unexpected method call on mocked class


Are they virtual method calls?
On Wed, Jul 29, 2009 at 11:13 AM, Malda <[email protected]> wrote:

Is there a way how to force throw exception on unexpected method call
on mocked class ? It`s working on mocked interfaces but on mocked
classes unexpected method calls are ignored.










-- 
Chris Missal
http://chrismissal.lostechies.com/



--~--~---------~--~----~------------~-------~--~----~
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