My scenario is a derived class method is called , it calls its base
class'es method.
This is perfectly normal and correct for OO.
the issue comes with unit testing. rather than setting up a lot of
data so the base handler throws the correct value to the derived
class , all I wanted to do was moq the baseclass.
I accept that moq is limited by what you can do in c# (fair enough -
thanks for telling me that - i think moq ia almost a back art at times
so this is kind of reassuring <g>)
but apart from the unit testing implications , what I am doing is
pretty standard OO stuff.
My solution is to set up the test data so the base handler returns
what its supposed to - I have other unit tests on the base class
proving that)
Thanks for the help
On Feb 6, 1:23 pm, Daniel Cazzulino <
kzu....@gmail.com> wrote:
> quite the contrary.
> it means if you can't do it with straight OO inheritance, then you can't do
> it with moq.
>
> the scenario you laid out first is not possible with straight OO inheritance
> (inheriting a method, calling the base, but somehow having the base class
> behavior while changing/overwriting the base-base class behavior).
>
> /kzu
>
> --
> Daniel Cazzulino | Developer Lead | XML MVP | Clarius Consulting | +1
>
425.329.3471
>
>
>
> On Fri, Feb 6, 2009 at 9:49 AM, <
mkendr...@gam.com> wrote:
>
> > it means using OO inheritance is out if you want to moq then.- Hide quoted text -