[Mono-bugs] [Bug 354759] New: Mono can't execute Rhino.Mocks tests: Invalid IL code

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 18 11:13:41 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=354759


           Summary: Mono can't execute Rhino.Mocks tests: Invalid IL code
           Product: Mono: Runtime
           Version: 1.2.6
          Platform: 32bit
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: miltondp at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Sorry if I can't provide more information about the bug. I have this test:

[Test]
public void RetrieveByDni_ISession()
{
        ISession session = this.mocks.CreateMock<ISession>();
        Expect.Call(session.Get<Person>(1))
                .Return(new Person("Pividori", "Milton", true));

        this.mocks.ReplayAll();
        Person aPerson = this.personsManager.RetrieveById(session, 1);
        Assert.IsNotNull(aPerson);
        Assert.AreEqual("Pividori", aPerson.Surname);
        Assert.AreEqual("Milton", aPerson.Name);
        Assert.IsTrue(aPerson.IsMan);

        this.mocks.VerifyAll();

}

The output of nunit-console (version 2.4.6) is:

2) PersonsManagerTest.GenericManagerPerson.RetrieveByDni_ISession :
System.InvalidProgramException : Invalid IL code in
InvocationGet_54:.ctor
(object,Castle.Core.Interceptor.IInterceptor[],System.Type,System.Reflection.MethodInfo,System.Reflection.MethodInfo,object[],object):
IL_0000: stelem.any0xa4b49680 

The test works on Windows with NET 2.0. I am using Mono 1.2.6 and Rhino.Mocks
3.3 on Ubuntu Gutsy 7.10.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list