public void Notificator_DoesNotPublishNullValues() => new TestScheduler().With(scheduler => { int invokes = 0; var sut = new Notificator(); (sut as INotificationListener).Notifications.Subscribe(_ => invokes++); sut.Publish(null); scheduler.AdvanceBy(1); Assert.True(invokes == 0); });