The problem is different in eventing structure between CLR and COM.Basically,
COM dlls don't have sepcial name prop set on the method for the add_ /
remove_ event.

On Sat, Nov 15, 2008 at 4:51 AM, vishy <[EMAIL PROTECTED]> wrote:

>
> Hi,
> thanks a lot(weekend here, will check it out on Monday). I would love
> to know, what was the issue? I have not looked into source code yet.
>
>
> On Nov 14, 7:48 pm, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> > Hm, you are correct, fixed in SVN.this test now passes:
> >
> > [TestFixture]
> >
> > public class Person
> >
> > {
> >
> >     [Test]
> >
> >     public void DoesValuesGetSaved()
> >
> >     {
> >
> >         MockRepository repository = new MockRepository();
> >
> >         PersonLib.DatabaseCommand db = repository.CreateMock<PersonLib.
> > DatabaseCommand>();
> >
> >         db.SavedSuccessfully += null;
> >
> >         LastCall.IgnoreArguments();
> >
> >         Rhino.Mocks.Interfaces.IEventRaiser eventRaiser = LastCall
> > .GetEventRaiser();
> >
> >         repository.ReplayAll();
> >
> >         bool wasSaved = false;
> >
> >         db.SavedSuccessfully+=delegate
> >
> >         {
> >
> >             wasSaved = true;
> >
> >         };
> >
> >         eventRaiser.Raise();
> >
> >         Assert.IsTrue(wasSaved);
> >
> >     }
> >
> > }
> > On Fri, Nov 14, 2008 at 6:49 AM, vishy <[EMAIL PROTECTED]> wrote:
> >
> > > thanks. I just build with the new source, still getting the same
> > > error.
> >
> > > On Nov 14, 9:21 am, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> > > > Yes
> >
> > > > On Fri, Nov 14, 2008 at 6:17 AM, vishy <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > thanks. Should I build from the source( check out from trunk) and
> use
> > > > > thew new dll?
> >
> > > > > On Nov 14, 3:40 am, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> > > > > > Fixed on the repository
> >
> > > > > > On Thu, Nov 13, 2008 at 7:36 AM, Ayende Rahien <
> [EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > > I saw that, I'll need to find some spare time to go over it.
> >
> > > > > > > On Thu, Nov 13, 2008 at 7:30 AM, vishy <[EMAIL PROTECTED]
> >
> > > wrote:
> >
> > > > > > >> Hi Ayende,
> >
> > > > > > >> I have mailed you an application.
> >
> > > > > > >> On Nov 11, 6:30 pm, "Ayende Rahien" <[EMAIL PROTECTED]>
> wrote:
> > > > > > >> > I think that COM events work differently, and cannot be used
> > > > > directly by
> > > > > > >> the
> > > > > > >> > EventRaiser.If you can create a simple failing test I'll
> look at
> > > > > that
> >
> > > > > > >> > On Tue, Nov 11, 2008 at 1:42 PM, vishy <
> [EMAIL PROTECTED]>
> > > > > wrote:
> >
> > > > > > >> > > Hi,
> >
> > > > > > >> > > We are writing tests for a COM dll written in visual basic
> > > 6.0. We
> > > > > are
> > > > > > >> > > mocking a Vb class which is raising an event. We are
> trying to
> > > use
> > > > > > >> > > EventRaiser object of rhino mocks to raise the event n
> verify
> > > that
> > > > > > >> > > event was handled. But, we are getting an exception that
> > > "Object
> > > > > does
> > > > > > >> > > not support the set of events", which we think is being
> thrown
> > > by
> > > > > VB.
> > > > > > >> > > thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to