public void load_a_package_info_from_a_manifest_file_when_given_the_folder() { // the reader is rooted at the folder location of the main app var package = reader.LoadFromFolder("../../../TestPackage1".ToFullPath()); var assemblyLoader = new AssemblyLoader(new PackagingDiagnostics()); assemblyLoader.LoadAssembliesFromPackage(package); assemblyLoader.Assemblies.Single().GetName().Name.ShouldEqual("TestPackage1"); }
public void load_all_packages_by_reading_the_include_folder() { var includes = new PackageIncludeManifest(); includes.Include("../TestPackage1"); new FileSystem().PersistToFile(includes, "../../".ToFullPath(), PackageIncludeManifest.FILE); var assemblyLoader = new AssemblyLoader(new PackagingDiagnostics()); var package = reader.Load().Single(); assemblyLoader.LoadAssembliesFromPackage(package); assemblyLoader.Assemblies.Single().GetName().Name.ShouldEqual("TestPackage1"); }