Exemplo n.º 1
0
        public void CreateBundlesReturnsOneBundlePerBundleManifest()
        {
            var manifest = new CassetteManifest("", new BundleManifest[]
            {
                new ScriptBundleManifest { Path = "~/js", Hash = new byte[0] },
                new StylesheetBundleManifest { Path = "~/css", Hash = new byte[0] }
            });

            var bundles = manifest.CreateBundles().ToArray();

            bundles.Length.ShouldEqual(2);
            bundles[0].ShouldBeType<ScriptBundle>();
            bundles[1].ShouldBeType<StylesheetBundle>();
        }
 void UseCachedBundles(CassetteManifest cachedManifest)
 {
     bundlesArray = cachedManifest.CreateBundles().ToArray();
     ProcessAllBundles(bundlesArray);
 }