It's not silly if you're using a mocking framework. ;) What you described is exactly what Rhino.Mocks does in the background with Dynamic Proxy. Thus, it allows you to stub out abstract properties.
--- Patrick Steele http://weblogs.asp.net/psteele On Wed, Nov 30, 2011 at 6:04 AM, bill richards <[email protected]> wrote: > Now you are just being silly! > > You cannot stub and abstract class, it's abstract! > > What you have to do is create a sub-class > > class MyClass : AbstractClass > { > override public bool MyPeoprty { get;set; } > } > > > > > On Nov 30, 9:01 am, hagai cohen <[email protected]> wrote: >> sample: >> abstract bool MyPeoprty >> { >> get; >> set; >> >> } >> >> I would like to stub it with Rhino. >> anyone ? >> >> hagai > > -- > 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. > > -- 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.
