public void should_return_last_if_recently_completed() { var fakeNotification = new ProgressNotification("Title"); _notificationProvider.Register(fakeNotification); fakeNotification.Dispose(); _notificationProvider.GetCurrent().Should().Be(fakeNotification); }
public void should_return_null_if_completed_long_time_ago() { var fakeNotification = new ProgressNotification("Title"); _notificationProvider.Register(fakeNotification); fakeNotification.Dispose(); Thread.Sleep(7000); _notificationProvider.GetCurrent().Should().BeNull(); }