public void NotificationExtensions_PublishWarning_SetsWarningLevelAtNotification() { bool success = false; var notificator = new Notificator(); (notificator as INotificationListener).Notifications .Take(1) .Where(x => x.Level == NotificationLevel.Warning) .Subscribe(_ => success = true); notificator.PublishWarning("Test"); Assert.True(success); }