AddAssembly() public method

public AddAssembly ( string assemblyName ) : bool
assemblyName string
return bool
        public void load_packages_by_assembly()
        {
            var includes = new PackageManifest();
            includes.AddAssembly("TestPackage1");

            new FileSystem().PersistToFile(includes, "../../".ToFullPath(), PackageManifest.FILE);

            var assemblyLoader = new AssemblyLoader(new PackagingDiagnostics());
            assemblyLoader.AssemblyFileLoader = file => Assembly.Load(File.ReadAllBytes(file));

            var package = reader.Load(new PackageLog()).Single();
            assemblyLoader.LoadAssembliesFromPackage(package);

            assemblyLoader
                .Assemblies
                .Single()
                .GetName()
                .Name
                .ShouldEqual("TestPackage1");
        }
        public void SetUp()
        {
            packageFolder = FileSystem.Combine("../../../TestPackage1").ToFullPath();

            var fileSystem = new FileSystem();
            var manifest = new PackageManifest(){
                Name = "pak1"
            };

            manifest.AddAssembly("TestPackage1");

            fileSystem.PersistToFile(manifest, packageFolder, PackageManifest.FILE);

            reader = new PackageManifestReader("../../".ToFullPath(), fileSystem, folder => folder);
        }
        public void SetUp()
        {
            packageFolder = FileSystem.Combine("../../../TestPackage1").ToFullPath();

            var fileSystem = new FileSystem();
            var manifest = new PackageManifest{
                Name = "pak1"
            };

            manifest.AddAssembly("TestPackage1");

            fileSystem.PersistToFile(manifest, packageFolder, PackageManifest.FILE);

            linkedFolderReader = new LinkedFolderPackageLoader(theApplicationDirectory, f => f);

            reader = new BottleManifestReader(fileSystem, folder => folder);
        }