public void Is_available_by_default()
 {
     var activated = false;
     var activator = new FeatureActivator(() => { activated = true; });
     Assert.That(activator.First(), Is.True);
     Assert.That(activated);
 }
        public void Is_available_by_default()
        {
            var activated = false;
            var activator = new FeatureActivator(() => { activated = true; });

            Assert.That(activator.First(), Is.True);
            Assert.That(activated);
        }
        public void Is_not_initially_available_if_dependency_returns_false()
        {
            var activator = new FeatureActivator(() => { }, dependsOn: Observable.Return(false));

            Assert.That(activator.First(), Is.False);
        }
 public void Is_not_initially_available_if_dependency_returns_false()
 {
     var activator = new FeatureActivator(() => { }, dependsOn: Observable.Return(false));
     Assert.That(activator.First(), Is.False);
 }