public void When_true_availability_has_been_signaled_then_IsAvailable_is_true() { var feature = new Feature<ActivatableFeature>(new ActivatableFeature(Observable.Return(true))); Assert.That(feature.IsAvailable(), Is.True); }
public void When_no_availability_has_been_signaled_then_IsAvailable_is_false() { var subject = new ReplaySubject<bool>(); var feature = new Feature<ActivatableFeature>(new ActivatableFeature(subject)); Assert.That(feature.IsAvailable(), Is.False); }