public void Should_not_activate_features_with_unmet_dependencies() { var feature = new FeatureWithStartupTask(); var featureSettings = new FeatureActivator(new SettingsHolder()); featureSettings.Add(feature); var builder = new FakeBuilder(typeof(FeatureWithStartupTask.Runner)); featureSettings.SetupFeatures(new FeatureConfigurationContext(null)); featureSettings.StartFeatures(builder); featureSettings.StopFeatures(builder); Assert.True(FeatureWithStartupTask.Runner.Started); Assert.True(FeatureWithStartupTask.Runner.Stopped); }