public void GivenSectionDebugTrueAndGlobalDebugFalse_WhenConfigure_ThenIsDebuggedEnabledIsTrue()
        {
            section.Debug = true;
            var config = new InitialConfiguration(section, true, "/", "/", storage);

            config.Configure(new BundleCollection(settings), settings);

            settings.IsDebuggingEnabled.ShouldBeTrue();
        }
        public void GivenSectionDebugTrueAndGlobalDebugFalse_WhenConfigure_ThenIsDebuggedEnabledIsTrue()
        {
            section.Debug = true;
            var config = new InitialConfiguration(section, true, "/", "/");

            config.Configure(new BundleCollection(settings), settings);

            settings.IsDebuggingEnabled.ShouldBeTrue();
        }
        public void GivenSectionDebugNullAndGlobalDebugFalse_WhenConfigure_ThenIsDebuggedEnabledIsFalse()
        {
            section.Debug = null;
            var config = new InitialConfiguration(section, false, "/", "/", storage);

            config.Configure(new BundleCollection(settings), settings);

            settings.IsDebuggingEnabled.ShouldBeFalse();
        }
Beispiel #4
0
        public void GivenSectionDebugNullAndGlobalDebugFalse_WhenConfigure_ThenIsDebuggedEnabledIsFalse()
        {
            section.Debug = null;
            var config = new InitialConfiguration(section, false, "/", "/");

            config.Configure(new BundleCollection(settings), settings);

            settings.IsDebuggingEnabled.ShouldBeFalse();
        }
Beispiel #5
0
        static List <ICassetteConfiguration> GetAllConfigurations(CassetteConfigurationSection section)
        {
            var initialConfiguration = new InitialConfiguration(
                section,
                GetSystemWebCompilationDebug(),
                HttpRuntime.AppDomainAppPath,
                HttpRuntime.AppDomainAppVirtualPath,
                _storage
                );

            var allConfigurations = new List <ICassetteConfiguration> {
                initialConfiguration
            };

            allConfigurations.AddRange(_configurations);
            return(allConfigurations);
        }
Beispiel #6
0
        static List<ICassetteConfiguration> GetAllConfigurations(CassetteConfigurationSection section)
        {
            var initialConfiguration = new InitialConfiguration(
                section,
                GetSystemWebCompilationDebug(),
                HttpRuntime.AppDomainAppPath,
                HttpRuntime.AppDomainAppVirtualPath,
                _storage
            );

            var allConfigurations = new List<ICassetteConfiguration> { initialConfiguration };
            allConfigurations.AddRange(_configurations);
            return allConfigurations;
        }