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>(); }
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>(); }