public void load_assemblies_just_tries_to_add_the_inner_assembly_directly() { var loader = MockRepository.GenerateMock <IAssemblyRegistration>(); package.LoadAssemblies(loader); loader.AssertWasCalled(x => x.Use(assembly)); }
public void assembly_package_adds_an_assembly_target_for_the_assembly() { // This behavior is crucial. If you add the assembly the wrong way, // Bottles tries to copy the assembly to the application bin directory var theAssembly = GetType().Assembly; var package = new AssemblyPackageInfo(theAssembly); var registration = MockRepository.GenerateMock <IAssemblyRegistration>(); package.LoadAssemblies(registration); registration.AssertWasCalled(x => x.Use(theAssembly)); }