Beispiel #1
0
        public void RegisterBundles_WithValidBundlesCollection_RegistersThemeBundle()
        {
            BundleCollection bundles = new BundleCollection();

            BundleConfig.RegisterBundles(bundles);

            StyleBundle item = (bundles.SingleOrDefault(bundle => bundle.Path == Bundles.Styles.Theme) as StyleBundle);

            Assert.IsNotNull(item);
        }
Beispiel #2
0
        public void RegisterBundles_WithValidBundlesCollection_RegistersBootstrapScripts()
        {
            BundleCollection bundles = new BundleCollection();

            BundleConfig.RegisterBundles(bundles);

            ScriptBundle item = (bundles.SingleOrDefault(bundle => bundle.Path == Bundles.Scripts.Bootstrap) as ScriptBundle);

            Assert.IsNotNull(item);
        }