public void CreateBundleWithUrlCreatesExternalBundle()
        {
            var factory = new StylesheetBundleFactory();
            var bundle  = factory.CreateExternalBundle("http://test.com/test.css");

            bundle.ShouldBeType <ExternalStylesheetBundle>();
        }
        public void CreateBundleReturnsStylesheetBundleWithDirectorySet()
        {
            var factory = new StylesheetBundleFactory();
            var bundle  = factory.CreateBundle(
                "~/test",
                Enumerable.Empty <IFile>(),
                new BundleDescriptor {
                AssetFilenames = { "*" }
            }
                );

            bundle.Path.ShouldEqual("~/test");
        }
示例#3
0
 public StylesheetBundleFactory_Tests()
 {
     pipeline = Mock.Of <IBundlePipeline <StylesheetBundle> >();
     factory  = new StylesheetBundleFactory(() => pipeline);
 }
 public StylesheetBundleFactory_Tests()
 {
     settings = new CassetteSettings("");
     factory  = new StylesheetBundleFactory(settings);
 }