public void CanInstallBinsorScriptFromGeneratedAssembly()
        {
            _container.Install(BinsorScript
                               .FromFile(Path.GetFullPath(@"Binsor\Windsor2.boo"))
                               .GenerateAssembly()
                               );

            IWindsorContainer container = new WindsorContainer()
                                          .Install(BinsorScript.FromCompiledAssembly("Windsor2.dll")
                                                   );

            bool has_repos = container.Kernel.HasComponent(typeof(IRepository <>));

            Assert.IsTrue(has_repos, "should have generic repository!");
        }
 public void InstallBinsorScriptFromInvalidAssembly_ThrowsException()
 {
     _container.Install(BinsorScript.FromCompiledAssembly(
                            Assembly.GetExecutingAssembly())
                        );
 }