Exemplo n.º 1
0
        internal override BundleManifest CreateBundleManifest(bool includeProcessedBundleContent)
        {
            var builder = new ScriptBundleManifestBuilder {
                IncludeContent = includeProcessedBundleContent
            };

            return(builder.BuildManifest(this));
        }
        public void ManifestConditionEqualsBundleCondition()
        {
            var bndle = new ScriptBundle("~") { Condition = "CONDITION" };
            var bldr = new ScriptBundleManifestBuilder();
            var mnifst = bldr.BuildManifest(bndle);

            mnifst.Condition.ShouldEqual(bndle.Condition);
        }
Exemplo n.º 3
0
 internal override BundleManifest CreateBundleManifest(bool includeProcessedBundleContent)
 {
     var builder = new ScriptBundleManifestBuilder { IncludeContent = includeProcessedBundleContent};
     return builder.BuildManifest(this);
 }
        public void ManifestConditionEqualsBundleCondition()
        {
            var urlModifier = Mock.Of<IUrlModifier>();
            bundle = new ScriptBundle("~")
            {
                Condition = "CONDITION",
                Renderer = new ConstantHtmlRenderer<ScriptBundle>("", urlModifier)
            };
            builder = new ScriptBundleManifestBuilder();
            var scriptBundleManifest = builder.BuildManifest(bundle);

            scriptBundleManifest.Condition.ShouldEqual(bundle.Condition);
        }