Example #1
0
        public void should_apply_feature_toggle(string flag, string expect)
        {
            AppContext.SetSwitch(flag, true);
            IFeature feature = FeatureFactory.Create();

            Assert.Equal(expect, feature.DoSomethingInteresting());
        }
Example #2
0
        public void should_get_the_normal_one()
        {
            IFeature feature = FeatureFactory.Create();

            Assert.Equal("Oh, finally the normal one.", feature.DoSomethingInteresting());
        }