예제 #1
0
        public void GivenProductionMode_WhenProcess_ThenBundleRenderIsStylesheetHtmlRenderer()
        {
            var settings = new CassetteSettings {
                IsDebuggingEnabled = false
            };
            var processor = new AssignStylesheetRenderer(Mock.Of <IUrlGenerator>(), settings);
            var bundle    = new StylesheetBundle("~/test");

            processor.Process(bundle);

            bundle.Renderer.ShouldBeType <StylesheetHtmlRenderer>();
        }
예제 #2
0
        public void GivenDebugMode_WhenProcess_ThenBundleRenderIsDebugStylesheetHtmlRenderer()
        {
            var processor = new AssignStylesheetRenderer();
            var settings  = new CassetteSettings("")
            {
                IsDebuggingEnabled = true
            };
            var bundle = new StylesheetBundle("~/test");

            processor.Process(bundle, settings);

            bundle.Renderer.ShouldBeType <DebugStylesheetHtmlRenderer>();
        }