public void HandleMessage_PassMessageToHandler_ForExistingMessageType() { // Arrange mockedHandler.CanHandle(Arg.Any <MessageType>()).ReturnsForAnyArgs(true); var message = CreateTestMessage(); // Act messageCoordinator.HandleMessage(message); // Assert mockedHandler.Received(1).Handle(Arg.Is(message.Data)); }