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

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

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