public void ValidBundleUrlTest()
        {
            BundleCollection col = new BundleCollection();

            col.Add(new Bundle("~/js"));
            BundleResolver resolver = new BundleResolver(col);

            Assert.IsTrue(resolver.IsBundleVirtualPath("~/js"));
        }
        public void EnsureEmptyVirtualPathsDoNotThrowTest()
        {
            BundleCollection col      = new BundleCollection();
            BundleResolver   resolver = new BundleResolver(col);

            Assert.IsFalse(resolver.IsBundleVirtualPath(String.Empty));
            Assert.IsNull(resolver.GetBundleContents(String.Empty));
            Assert.IsNull(resolver.GetBundleUrl(String.Empty));
        }
        public void EnsureNonVirtualPathsDoNotThrowTest()
        {
            BundleCollection col      = new BundleCollection();
            BundleResolver   resolver = new BundleResolver(col);

            Assert.IsFalse(resolver.IsBundleVirtualPath("missingTilde"));
            Assert.IsNull(resolver.GetBundleContents("missingTilde"));
            Assert.IsNull(resolver.GetBundleUrl("missingTilde"));
        }
        public void NonBundleValidUrlTest()
        {
            BundleCollection col = new BundleCollection();

            col.Add(new Bundle("~/js"));
            BundleResolver resolver = new BundleResolver(col);

            Assert.IsFalse(resolver.IsBundleVirtualPath("~/nope"));
            Assert.IsNull(resolver.GetBundleContents("~/nope"));
            Assert.IsNull(resolver.GetBundleUrl("~/nope"));
        }