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