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")); }
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"]); }
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")); }