public void RenderNamedUsesOutputBaseHref() { var firstPath = "first.js"; var secondPath = "second.js"; fileReaderFactory.SetContentsForFile(TestUtilities.PrepareRelativePath(firstPath), javaScript); fileReaderFactory.SetContentsForFile(TestUtilities.PrepareRelativePath(secondPath), javaScript2); javaScriptBundle .Add(firstPath) .Add(secondPath) .WithOutputBaseHref("http://subdomain.domain.com") .AsNamed("leBundle", "/js/output.js"); var tag = javaScriptBundle2 .WithOutputBaseHref("http://subdomain.domain.com") .RenderNamed("leBundle"); Assert.AreEqual("<script type=\"text/javascript\" src=\"http://subdomain.domain.com/js/output.js?r=A01134C134801A6DEC25510924C1EEA4\"></script>", tag); }