Ejemplo n.º 1
0
        public void CanUseArbitraryReleaseFileRenderer()
        {
            var renderer = new Mock <IRenderer>();

            var content = "content";

            javaScriptBundle
            .WithReleaseFileRenderer(renderer.Object)
            .AddString(content)
            .ForceRelease()
            .Render("test.js");

            renderer.Verify(r => r.Render(content, TestUtilities.PrepareRelativePath("test.js")));
        }