Пример #1
0
        public void load_asset_files_from_an_overrides_sub_folder()
        {
            var file = thePipeline.Find("folder1/script1.js");

            file.Override.ShouldBeTrue();
            file.FullPath.ShouldContain(FileSystem.Combine("pak1", "content", "scripts", "overrides", "folder1", "script1.js"));
        }
Пример #2
0
        public void find_exact_match_with_package_type_and_name()
        {
            theFiles.LoadAssets(@"
app=application:scripts/jquery.js
pak1-image=pak1:images/jquery.js
pak1-script=pak1:scripts/jquery.js
pak2=pak1:scripts/jquery.js
");

            thePipeline.Find("pak1:scripts/jquery.js").ShouldBeTheSameAs(theFiles["pak1-script"]);
        }
Пример #3
0
        public void should_use_case_insensitive_search_when_searching_by_file_only()
        {
            var assetFile = _thePipeline.Find("A.js");

            assetFile.ShouldNotBeNull();
            assetFile.Name.ShouldEqual("a.js");
        }
 public void find_file()
 {
     thePipeline.Find("a.js").ShouldBeTheSameAs(
         thePipeline.AssetsFor(AssetPipeline.Application).FindByName("a.js"));
 }