![show/hide quicksearch [+]](../../images/find.png)
Records a Test::Unit::Notification.
 
               # File test-unit-3.3.7/lib/test/unit/notification.rb, line 114
def add_notification(notification)
  @notifications << notification
  notify_fault(notification)
  notify_changed
end
             
            Returns the number of notifications this TestResult has recorded.
 
               # File test-unit-3.3.7/lib/test/unit/notification.rb, line 122
def notification_count
  @notifications.size
end