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; } }
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; } }