Exemplo n.º 1
0
        public void ReadBooleanFalse()
#endif
        {
            var result = true;

            var sut = new ApplicationResourcesSettingsProvider();

#if NETFX_CORE
            await
#endif
            RunOn.Dispatcher(() =>
            {
                ApplicationResourcesSetter.Set("FeatureToggle.BooleanFalse", false);
                result = sut.EvaluateBooleanToggleValue(new BooleanFalse());
            });


            AssertFacade.False(result);
        }
Exemplo n.º 2
0
        public void BeDisabledWhenAssemblyVersionIsBelowConfiguredAssemblyVersion()
#endif

        {
            var result = false;

            var sut = new MyVersionToggleFor_v0_0_2_2();


#if NETFX_CORE
            await
#endif
            RunOn.Dispatcher(() =>
            {
                ApplicationResourcesSetter.Set("FeatureToggle.MyVersionToggleFor_v0_0_2_2", "0.0.2.2");
                result = sut.FeatureEnabled;
            });


            AssertFacade.False(result);
        }