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