public void ModuleManagerRunCalled() { var bootstrapper = new DefaultMefBootstrapper(); var container = new CompositionContainer(); Mock <IModuleManager> mockModuleManager = SetupModuleManager(container); bootstrapper.BaseContainer = container; bootstrapper.CallInitializeModules(); mockModuleManager.Verify(mm => mm.Run(), Times.Once()); }
public void ModuleManagerRunCalled() { var bootstrapper = new DefaultMefBootstrapper(); var container = new CompositionContainer(); Mock<IModuleManager> mockModuleManager = SetupModuleManager(container); bootstrapper.BaseContainer = container; bootstrapper.CallInitializeModules(); mockModuleManager.Verify(mm => mm.Run(), Times.Once()); }