>
> Can you create a failing test?
Sure thing. I looked in the code in SVN, I think these are different
code paths.
But I may be wrong.
Here's the test fixture. The first test is OK, the second fails on
Rhino Mocks version 3.5.0.1337.
Exception:
Rhino.Test.CreateMockAndCreateStub.GenerateStub_Works_With_MarshalByRef:
System.MissingMethodException : Can't find a constructor with matching
arguments
----> System.MissingMethodException : Constructor on type
'DProxy3ff1879607fb420c977fdfd1a946a45b' not found.
=======================================================
using System;
using NUnit.Framework;
using Rhino.Mocks;
namespace Rhino.Test
{
public class D : MarshalByRefObject
{
public D(IConvertible dep1, IDisposable dep2, ICloneable dep3)
{
}
}
[TestFixture]
public class CreateMockAndCreateStub
{
[Test]
public void GenerateMock_Works_With_MarshalByRef()
{
var d = MockRepository.GenerateMock<D>();
}
[Test]
public void GenerateStub_Works_With_MarshalByRef()
{
var d = MockRepository.GenerateStub<D>();
}
}
}