Add a assertion for the result code of the notification.