I have the following code:
public interface ILala
    {
        int AAA { get; set; }
    }

    public class BBB
    {
        public int Meth(ILala l)
        {
            return l.AAA;
        }
    }

and I'm trying to run the following test :

[Test]
                [ExpectedException(typeof(ApplicationException))]
                public void RhinoMockProperty()
                {
                        //
                        // Arrange
                        BBB instance = new BBB();
                        ILala lStub = MockRepository.GenerateStub<ILala>();
            lStub.Stub(x => x.AAA).Throw(new ApplicationException());

                        //
                        // Act
                        instance.Meth(lStub);
                }

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