Exemplo n.º 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);
        }
Exemplo n.º 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);
        }