Using version 3.5.0.1337, the following test fails:

public static class TestExtender
    {
        public static string MakeItNice(this ITest incoming)
        {
            return "Me";
        }
    }

    public interface ITest
    {

    }

    [TestFixture]
    public class ExtensionMethodSpec
    {

        [Test]
        public void ShouldReturnValueSetupByExtensionMethodStubbing()
        {
            var incoming = MockRepository.GenerateStub<ITest>();
            incoming.Expect(s => s.MakeItNice()).Return("Me2");
            Assert.AreEqual("Me2",new
Repeater(incoming).ObjectValue());
        }

        private class Repeater
        {
            private readonly ITest incoming;

            public Repeater(ITest incoming)
            {
                this.incoming = incoming;
            }

            public string ObjectValue()
            {
                return incoming.MakeItNice();
            }
        }
    }

I am assuming that rhino mocks does not support this, but I just
wanted to confirm that there wasn't a way to make this work (or plans
to make this work in the future).

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