예제 #1
0
        public void WhenIExecuteTheFrozenFeature(string featureName)
        {
            Spec.Set(false, "EnabledCalled");
            Spec.Set(false, "DisabledCalled");

            try
            {
                SpecData.Result = SpecData
                                  .FrozenFeatures[featureName]
                                  .Execute(SpecData.IfEnabled, SpecData.IfDisabled);
            }
            catch (Exception e)
            {
                SpecData.ThrownException = e;
            }
        }
예제 #2
0
        public void WhenIExecuteFeature(string featureName)
        {
            Spec.Set(false, "EnabledCalled");
            Spec.Set(false, "DisabledCalled");

            try
            {
                SpecData.Result = SpecData.FeatureSelector.Execute(
                    featureName,
                    SpecData.FeatureContext,
                    SpecData.IfEnabled,
                    SpecData.IfDisabled
                    );
            }
            catch (Exception e)
            {
                SpecData.ThrownException = e;
            }
        }