|
From: Drew N. <dre...@ya...> - 2007-05-04 23:39:30
|
I think a lot of people would be interested in seeing Steve's event firing code be part of NMock. I certainly would. If you're looking for another tester Steve... :)
----- Original Message ----
From: Nat Pryce <nat...@gm...>
To: NMock2 Development Discussion <nmo...@li...>
Sent: Friday, 4 May, 2007 9:58:05 PM
Subject: Re: [NMock2-Dev] Fwd: [TDD] Nmock verify
Could an admin add Steve as a committer? Then he could just apply his
patches straight in.
--Nat
On 04/05/07, Steve Mitcham <Ste...@ty...> wrote:
> 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 = new Mockery();
> ServiceContainer container = new ServiceContainer();
> IMockedType mockedType = mockery.NewMock(typeof
> (IMockedType)) as IMockedType;
>
> container.AddService(typeof (IMockedType),mockedType);
>
> 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 = null;
> Mockery mocks = new Mockery();
> Announcer announcer = (Announcer)
> mocks.NewMock(typeof(Announcer));
>
> Expect.Once.On(announcer).EventAdd("Listeners",
> new Listener(DummyListener));
>
> announcer.Listeners += new
> Listener(DummyListener);
>
> Fire.Event("Listeners").On(announcer).With("Test
> Message");
>
> 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.
>
> -----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
> the hope it would get looked after. I don't have a .Net environment
> at the moment so it's hard for me to do serious work. I added the
> 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
> Nat has been doing in jMock), the issue is whether the project is
> still live and responsive. From the traffic I've seen, many people in
> 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
> > yourself. I
> > believe at least two of those have been recently added in response
> > to a call
> > for people who have time they can devote to applying NMock patches,
> > 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
> > refactor
> > method names or add/remove parameters. This isn't going to change,
> > and if
> > people really want refactoring support that's better than
> > ReSharper's "also
> > look in strings" option, they should pick Rhino.
> >
> > I do agree that NMock's error messages and general friendliness
> > 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
>
> -------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html |