You can use the method option CallOriginalMethod to declare the method you won't mock :
Expect.Call(view.Ask(null,null)).CallOriginalMethod(); I don't know a method to apply this option on every method by defaut. Fabien Arcellier On 13 déc, 18:36, "[email protected]" <[email protected]> wrote: > Is there a way to stub a single method from an abstract class and > leave all other virtual methods to invoke the original implemented > method ? > > for instance in the following class : > > public abstract class A > { > public virtual int Meth1() > { > return Meth2() + 1; > } > public abstract int Meth2(); > > } > > I want to stub the Meth2 method and test for the result of Meth1. > > Thanks, > Izik Shmulewitz > > p.s. > sorry about the double post had some wrong clicks on the keyboard (Tab > and then space posted it.... :)) -- 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.
