コード例 #1
0
 public void Passive_notification_service_clears_its_buffer_after_reporting_notifications()
 {
     var p = new PassiveNotificationService();
     p.Notify(Severity.Warn, "foo", "bar", null);
     p.GetNotifications();
     Assert.That(p.GetNotifications().Count(), Is.EqualTo(0));
 }
コード例 #2
0
 public void Passive_notification_service_reports_notifications()
 {
     var p = new PassiveNotificationService();
     p.Notify(Severity.Warn, "foo", "bar", null);
     Assert.That(p.GetNotifications().Count(), Is.EqualTo(1));
 }
コード例 #3
0
 public void Passive_notification_service_accepts_notification()
 {
     var p = new PassiveNotificationService();
     p.Notify(Severity.Warn, "foo", "bar", null);
 }