public void Feature_enabled_by_later_feature_should_have_default_called()
        {
            var featureThatIsEnabledByAnother = new FeatureThatIsEnabledByAnother();
            //the orders matter here to expose a bug
            featureSettings.Add(featureThatIsEnabledByAnother);
            featureSettings.Add(new FeatureThatEnablesAnother());

            featureSettings.SetupFeatures(null, null);

            Assert.True(featureThatIsEnabledByAnother.DefaultCalled, "FeatureThatIsEnabledByAnother wasn't activated");
        }
        public void Feature_enabled_by_later_feature_should_have_default_called()
        {
            var featureThatIsEnabledByAnother = new FeatureThatIsEnabledByAnother();

            //the orders matter here to expose a bug
            featureSettings.Add(featureThatIsEnabledByAnother);
            featureSettings.Add(new FeatureThatEnablesAnother());

            featureSettings.SetupFeatures(null, null);

            Assert.True(featureThatIsEnabledByAnother.DefaultCalled, "FeatureThatIsEnabledByAnother wasn't activated");
        }