public void DisableDisablesTheFeature()
 {
     var flipper = new Flipper(new MemoryAdapter());
     flipper.Enable("Test");
     flipper.Disable("Test");
     Assert.That(flipper.Feature("Test").BooleanValue, Is.False);
 }
Beispiel #2
0
        public void DisableDisablesTheFeature()
        {
            var flipper = new Flipper(new MemoryAdapter());

            flipper.Enable("Test");
            flipper.Disable("Test");
            Assert.That(flipper.Feature("Test").BooleanValue, Is.False);
        }
 public void FeaturesShouldReturnEnabledAndDisabledFeatures()
 {
     var flipper = new Flipper(new MemoryAdapter());
     flipper.Enable("Stats");
     flipper.Enable("Cache");
     flipper.Disable("Search");
     Assert.That(from feature in flipper.Features select feature.Name,
                 Is.EquivalentTo(new[] {"Stats", "Cache", "Search"}));
 }
Beispiel #4
0
        public void FeaturesShouldReturnEnabledAndDisabledFeatures()
        {
            var flipper = new Flipper(new MemoryAdapter());

            flipper.Enable("Stats");
            flipper.Enable("Cache");
            flipper.Disable("Search");
            Assert.That(from feature in flipper.Features select feature.Name,
                        Is.EquivalentTo(new[] { "Stats", "Cache", "Search" }));
        }
        public void ShouldDisableABooleanGateForRuby()
        {
            const string stats = "Stats";

            rubyAdapter.Enable(stats);

            flipper.Disable(stats);

            Assert.That(rubyAdapter.IsEnabled(stats), Is.False);
        }