public void TransformReturnsJavaScriptThatAddsNamedTemplate()
        {
            var bundle = new HtmlTemplateBundle("~");
            var asset = new Mock<IAsset>();
            asset.Setup(a => a.Path).Returns("~/asset.htm");
            var transformer = new RegisterTemplateWithJQueryTmpl(bundle, new HtmlTemplateIdBuilder());

            var getResult = transformer.Transform(() => "TEMPLATE".AsStream(), asset.Object);

            getResult().ReadToEnd().ShouldEqual("jQuery.template('asset', TEMPLATE);" + Environment.NewLine);
        }
        public void TransformReturnsJavaScriptThatAddsNamedTemplate()
        {
            var bundle = new HtmlTemplateBundle("~");
            var asset  = new Mock <IAsset>();

            asset.Setup(a => a.SourceFile.FullPath).Returns("~/asset.htm");
            var transformer = new RegisterTemplateWithJQueryTmpl(bundle);

            var getResult = transformer.Transform(() => "TEMPLATE".AsStream(), asset.Object);

            getResult().ReadToEnd().ShouldEqual("$.template('asset', TEMPLATE);" + Environment.NewLine);
        }