I was trying to use the recursive mock syntax and kept getting
NullReferenceException error.
Here is a failing test - same as CanUseRecursiveMockSimpler() but
using Stub instead.

[Test]
        public void CanUseRecursiveStubSimpler()
        {
            var mockService = MockRepository.GenerateStub<IMyService>
();

            mockService.Expect(x => x.Identity.Name).Return("foo");

            Assert.AreEqual("foo", mockService.Identity.Name);
        }



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