I just modified the second test slightly, and it appears to indicate
that the Expectation was in fact realised.


        [Test]
        public void WhenUsingExpect_ShouldPassVerifyAllExpectations()
        {
            var child = MockRepository.GenerateStub<ITestChild>();
            child.Expect(c => c.SetParent
(Arg<ITestItem>.Is.Anything));

            var item = new TestItem(child);

            child.VerifyAllExpectations();
            child.AssertWasCalled(c => c.SetParent(item));
        }

--

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