|
From: Steve M. <Ste...@ty...> - 2007-05-04 20:51:04
|
I've submitted a patch to a major issue that I've come up against, that
I believe covers an open error in the bug list, several times only to
have the patch submission be completely ignored. I gave up sending
information to the lists a long time ago due to this behavior. I can
understand a patch being rejected, but I got no feedback whatsoever to
my attempts. This occurred over the course of several months about a
year ago. The issue still exists. I don't have time to look up the
exact defect I'm talking about, however, the symptom of the problem I'm
experiencing boils down to the following test:
[Test]
public void MockObjectsCanBeContainedInServiceContainer()
{
Mockery mockery =3D new Mockery();
ServiceContainer container =3D new ServiceContainer();
IMockedType mockedType =3D mockery.NewMock(typeof
(IMockedType)) as IMockedType;
=09
container.AddService(typeof (IMockedType),mockedType);
=20
Assert.AreSame(mockedType,container.GetService(typeof(IMockedType)));
}
I have a patch that my company uses that fixes this issue and also
allows for the following functionality:
[Test]
public void EventsCanBeRaisedDuringTests()
{
m_listenerMessage =3D null;
Mockery mocks =3D new Mockery();
Announcer announcer =3D (Announcer)
mocks.NewMock(typeof(Announcer));
=09
Expect.Once.On(announcer).EventAdd("Listeners",
new Listener(DummyListener));
=09
announcer.Listeners +=3D new
Listener(DummyListener);
=09
Fire.Event("Listeners").On(announcer).With("Test
Message");
=09
Assert.AreEqual("Test
Message",m_listenerMessage);
}
Finally, I have a patch to an issue raise several months ago concerning
Verification of expectations when ordered expectations are used, also a
major problem that remains unpatched to date as far as I can tell.
-----Original Message-----
From: nmo...@li...
[mailto:nmo...@li...] On Behalf Of M.
Scott Ford
Sent: Friday, May 04, 2007 3:41 PM
To: NMock2 Development Discussion
Subject: Re: [NMock2-Dev] Fwd: [TDD] Nmock verify
Just because a project does not have much activity does not mean that
the project is dead, it often means that the project is stable. I am
still actively using NMock on several different projects, and I have yet
to come across any serious issue since the RC was posted perhaps it is
time to bump it up to 1.0.=20
-----Original Message-----
From: "Steve Freeman" <st...@m3...>
To: "NMock2 Development Discussion"
<nmo...@li...>
Sent: 5/3/07 6:16 PM
Subject: Re: [NMock2-Dev] Fwd: [TDD] Nmock verify
Sorry Mike, but I put my time in on that project and handed it off in =20
the hope it would get looked after. I don't have a .Net environment =20
at the moment so it's hard for me to do serious work. I added the =20
last committer because he needed updates to keep NMock in his project.
The issue is not that NMock uses strings (although c.f. the work that =20
Nat has been doing in jMock), the issue is whether the project is =20
still live and responsive. From the traffic I've seen, many people in =20
the .Net world assume that it's dead.
S.
On 3 May 2007, at 22:43, Mike Mason wrote:
> On 5/3/07, Steve Freeman <smg...@gm...> wrote:
>>
>> This is part of a string of similar messages on the TDD list.
>>
>> Looks like NMock is dead in the water. Any of the committers still
>> there?
>>
>
> There are 18 committers on the SourceForge project, including =20
> yourself. I
> believe at least two of those have been recently added in response =20
> to a call
> for people who have time they can devote to applying NMock patches, =20
> etc.
>
> The discussion over on the TDD group is fair -- NMock doesn't use
> record/playback like Rhino does, and so gets caught out when you =20
> refactor
> method names or add/remove parameters. This isn't going to change, =20
> and if
> people really want refactoring support that's better than =20
> ReSharper's "also
> look in strings" option, they should pick Rhino.
>
> I do agree that NMock's error messages and general friendliness =20
> could be
> improved, and it'd be great to see people such as yourself committing
> changes to help out.
>
> Cheers,
> Mike.
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NMock-two-dev mailing list
NMo...@li...
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NMock-two-dev mailing list
NMo...@li...
https://lists.sourceforge.net/lists/listinfo/nmock-two-dev
|