public void ReturnTrueWhenAllWrappedTogglesAreEnabled() { var sut = new CompositeOrDecorator(new AnEnabledFeature(), new AnotherEnabledFeature()); Assert.True(sut.FeatureEnabled); }
public void ReturnTrueWhenOneWrappedToggleIsDisabled() { var sut = new CompositeOrDecorator(new AnEnabledFeature(), new ADisabledFeature()); Assert.True(sut.FeatureEnabled); }
public void ReturnFalseWhenAllWrappedTogglesAreDisabled() { var sut = new CompositeOrDecorator(new ADisabledFeature(), new AnotherDisabledFeature()); Assert.False(sut.FeatureEnabled); }