public void When_adding_remote_notification_listener_new_notification_listener_is_added_to_the_server() { _remoteServer.AddNotificationListener("Tests:key=value", OnNotificaion, null, null); _server.AssertWasCalled(x => x.AddNotificationListener("Tests:key=value", OnNotificaion, null, null), x => x.IgnoreArguments().Constraints(Is.Equal(new ObjectName("Tests:key=value")), Is.Anything(), Is.Anything(), Is.Anything())); }