public void FeatureWithMultipleDefaultValueTraitsThrows(FeatureFixture feature,
                                                                IEnumerable <DefaultValueTrait> defaultValueTraits, DefaultValueToggler sut)
        {
            feature.Traits.AddRange(defaultValueTraits);

            Assert.Throws <InvalidFeatureException>(() => sut.IsEnabled(null, feature));
        }
        public void FeatureWithDefaultValueTraitShouldReturnDefaultValue(FeatureFixture feature,
                                                                         DefaultValueTrait defaultValueTrait, DefaultValueToggler sut)
        {
            feature.Traits.Add(defaultValueTrait);

            bool?result = sut.IsEnabled(null, feature);

            Assert.Equal(defaultValueTrait.DefaultValue, result);
        }
 public void GivenNullFeatureThrows(DefaultValueToggler sut)
 {
     Assert.Throws <ArgumentNullException>(() => sut.IsEnabled(null, null));
 }
        public void FeatureWithoutDefaultValueTraitShouldReturnNull(FeatureFixture feature, DefaultValueToggler sut)
        {
            bool?result = sut.IsEnabled(null, feature);

            Assert.Null(result);
        }