public void CanBeNotifiedOfAddedModules() { WorkItem wi = new TestableRootWorkItem(); IModuleLoaderService svc = new ModuleLoaderService(null); LoadedModuleInfo lmi = null; Assembly assm = generatedAssemblies["ModuleDependency1"]; svc.ModuleLoaded += delegate(object sender, DataEventArgs <LoadedModuleInfo> e) { lmi = e.Data; }; svc.Load(wi, assm); Assert.IsNotNull(lmi); Assert.AreSame(assm, lmi.Assembly); }