|
From: Mike B. <mbr...@vi...> - 2004-01-19 16:34:07
|
I'm still confused. Does the current Nmock allow classes to be mocked? Wouldn't a mock of a class have a mock as a base as well? Are you saying that the mocked class would have the real class as its base? Mike P.S. A cc'ed list under the assumption that you forgot to. > -----Original Message----- > From: Jim Arnold [mailto:JA...@th...] > Sent: Monday, January 19, 2004 4:11 AM > To: mbr...@vi... > Subject: RE: [Nmock-general] Mocking types with constructors > > > > > > > The point is that sometimes the class you're mocking has > non-virtual methods which the class under test needs to call > (or perhaps you've used Ignore on some methods), and if you > don't have a fully constructed base those methods can fail. > It may not be a big deal, but I've run into it before and > thought it was worth discussing. > > Jim |