コード例 #1
0
        public void Feature_STAGEIsEnabled_ReturnsFalse()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.STAGE, _application);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsFalse(feature.IsEnabled());
        }
コード例 #2
0
        public void Feature_DEVIsEnabledWrongApp_ReturnsFalse()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.DEV, _differentApp);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsFalse(feature.IsEnabled());
        }
コード例 #3
0
        public void Feature_LOCALIsEnabledDifferentApp_ReturnsTrue()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.LOCAL, _differentApp);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsTrue(feature.IsEnabled());
        }
コード例 #4
0
        public void Feature_LocalIsEnabled_ReturnsTrue()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.LOCAL, _application);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsTrue(feature.IsEnabled());
        }
コード例 #5
0
        public void Feature_PRODDesktopPlatformIsEnabled_ReturnsFalse()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.PROD, PlatformEnum.Desktop, _application);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsFalse(feature.IsEnabled());
        }
コード例 #6
0
        public void Feature_DEVWinPhonePlatformIsEnabled_ReturnsFalse()
        {
            var jsonSettings = GetJsonSettings(EnvironmentEnum.LOCAL, PlatformEnum.WinPhone, _application);

            var feature = new ApplicationAllFeature(jsonSettings);

            Assert.IsFalse(feature.IsEnabled());
        }