Ejemplo n.º 1
0
 public void ShouldBeAbleToSetupToggleWithFeatureToOnForOneAmongstMany()
 {
     var toggledWithMultipleFeatures = new ToggledWithMultipleFeatures();
     using (toggledWithMultipleFeatures.SetUpToggledWithFeature<Feature2>(true))
     {
         Assert.That(toggledWithMultipleFeatures.IsFeatureOn<Feature2>(), Is.True);
     }
 }
Ejemplo n.º 2
0
        public void ShouldBeAbleToSetupToggleWithFeatureToOnForOneAmongstMany()
        {
            var toggledWithMultipleFeatures = new ToggledWithMultipleFeatures();

            using (toggledWithMultipleFeatures.SetUpToggledWithFeature <Feature2>(true))
            {
                Assert.That(toggledWithMultipleFeatures.IsFeatureOn <Feature2>(), Is.True);
            }
        }
Ejemplo n.º 3
0
 public void ShouldBeAbleToSetupToggleWithFeatureToOnForAllFeatures()
 {
     var toggledWithMultipleFeatures = new ToggledWithMultipleFeatures();
     using (toggledWithMultipleFeatures.SetUpToggledWithFeature<Feature2>(true))
     {
         using (toggledWithMultipleFeatures.SetUpToggledWithFeature<TestSetup.Feature>(true))
         {
             Assert.That(toggledWithMultipleFeatures.IsFeatureOn<TestSetup.Feature>(), Is.True);
             Assert.That(toggledWithMultipleFeatures.IsFeatureOn<Feature2>(), Is.True);
         }
     }
 }
Ejemplo n.º 4
0
        public void ShouldBeAbleToSetupToggleWithFeatureToOnForAllFeatures()
        {
            var toggledWithMultipleFeatures = new ToggledWithMultipleFeatures();

            using (toggledWithMultipleFeatures.SetUpToggledWithFeature <Feature2>(true))
            {
                using (toggledWithMultipleFeatures.SetUpToggledWithFeature <TestSetup.Feature>(true))
                {
                    Assert.That(toggledWithMultipleFeatures.IsFeatureOn <TestSetup.Feature>(), Is.True);
                    Assert.That(toggledWithMultipleFeatures.IsFeatureOn <Feature2>(), Is.True);
                }
            }
        }