public void IsEnabled_WhenFeatureIsDisabledInTheConfiguration_FeatureIsDisabled() { var fixture = new Fixture(); var feature = fixture.Create<TestFeature>(); feature.State = true; var configuration = GetConfiguration(feature, false); var configurationDrivenFeature = new ConfigurationDrivenFeatureAdapter(feature, configuration); configurationDrivenFeature.IsEnabled().Should().Be.False(); }
public void IsEnabled_WhenFeatureIsEnabledInTheConfiguration_OriginalFeatureStateIsReturned(bool featureState) { var fixture = new Fixture(); var feature = fixture.Create<TestFeature>(); feature.State = featureState; var configuration = GetConfiguration(feature, featureState); var configurationDrivenFeature = new ConfigurationDrivenFeatureAdapter(feature, configuration); configurationDrivenFeature.IsEnabled().Should().Equal(featureState); }
public void IsEnabled_WhenFeatureIsDisabledInTheConfiguration_FeatureIsDisabled() { var fixture = new Fixture(); var feature = fixture.Create <TestFeature>(); feature.State = true; var configuration = GetConfiguration(feature, false); var configurationDrivenFeature = new ConfigurationDrivenFeatureAdapter(feature, configuration); configurationDrivenFeature.IsEnabled().Should().Be.False(); }
public void IsEnabled_WhenFeatureIsEnabledInTheConfiguration_OriginalFeatureStateIsReturned(bool featureState) { var fixture = new Fixture(); var feature = fixture.Create <TestFeature>(); feature.State = featureState; var configuration = GetConfiguration(feature, featureState); var configurationDrivenFeature = new ConfigurationDrivenFeatureAdapter(feature, configuration); configurationDrivenFeature.IsEnabled().Should().Equal(featureState); }