public void can_retrieve_web_content_folder_from_package()
        {
            var expected = "not this";

            thePackage.ForFolder(FubuMvcPackages.WebContentFolder, folder =>
            {
                expected = folder;
            });

            expected.ShouldEqual(FileSystem.Combine("fubu-content", "AssemblyPackage", "WebContent").ToFullPath());
        }
示例#2
0
 public static IEnumerable <IPackageInfo> LoadPackages(List <string> list)
 {
     return(FindAssemblies(list)
            .Select(assem => {
         Console.WriteLine("Exploding content from " + assem.GetName());
         var pak = new AssemblyPackageInfo(assem);
         pak.ForFolder(BottleFiles.WebContentFolder, x => {
             // nothing, just forcing it to do something
         });
         return pak;
     }));
 }