Now I've rewritten my test. Now, it works. But I do not understand
what the difference of the two tests is and why one works and the
other not. Can someone tell me this thing?

        [Test]
        public void
If_Communicator_Event_IsConnected_Was_Fired_Controller_SendBlubberMessage_Is_Called()
        {
            // arrange
            var communicator =
MockRepository.GenerateMock<ICommunicator>();
            var controller =
MockRepository.GeneratePartialMock<Controller>(communicator);

            // act
            communicator.Raise(c => c.IsConnected += null, null,
EventArgs.Empty);

            // assert
            controller.AssertWasCalled(c => c.SendBlubberMessage());
        }

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