本文整理汇总了C#中Microsoft.Practices.Prism.MefExtensions.Tests.DefaultMefBootstrapper.Run方法的典型用法代码示例。如果您正苦于以下问题:C# DefaultMefBootstrapper.Run方法的具体用法?C# DefaultMefBootstrapper.Run怎么用?C# DefaultMefBootstrapper.Run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Practices.Prism.MefExtensions.Tests.DefaultMefBootstrapper
的用法示例。
在下文中一共展示了DefaultMefBootstrapper.Run方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunShouldCallCreateLogger
public void RunShouldCallCreateLogger()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsTrue(bootstrapper.CreateLoggerCalled);
}
示例2: RunShouldCallConfigureAggregateCatalog
public void RunShouldCallConfigureAggregateCatalog()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsTrue(bootstrapper.ConfigureAggregateCatalogCalled);
}
示例3: RunShouldCallCreateModuleCatalog
public void RunShouldCallCreateModuleCatalog()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsTrue(bootstrapper.CreateModuleCatalogCalled);
}
示例4: RunConfiguresServiceLocatorProvider
public void RunConfiguresServiceLocatorProvider()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsTrue(ServiceLocation.ServiceLocator.Current is MefServiceLocatorAdapter);
}
示例5: RunShouldCallInitializeModules
public void RunShouldCallInitializeModules()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsTrue(bootstrapper.InitializeModulesCalled);
}
示例6: RegionNavigationJournalEntryIsRegisteredWithContainer
public void RegionNavigationJournalEntryIsRegisteredWithContainer()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
var actual1 = bootstrapper.BaseContainer.GetExportedValue<IRegionNavigationJournalEntry>();
var actual2 = bootstrapper.BaseContainer.GetExportedValue<IRegionNavigationJournalEntry>();
Assert.IsNotNull(actual1);
Assert.IsNotNull(actual2);
Assert.AreNotSame(actual1, actual2);
}
示例7: SingleIRegionBehaviorFactoryIsRegisteredWithContainer
public void SingleIRegionBehaviorFactoryIsRegisteredWithContainer()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
var exported = bootstrapper.BaseContainer.GetExportedValue<IRegionBehaviorFactory>();
Assert.IsNotNull(exported);
}
示例8: SingleSyncRegionContextWithHostBehaviorIsRegisteredWithContainer
public void SingleSyncRegionContextWithHostBehaviorIsRegisteredWithContainer()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
var exported = bootstrapper.BaseContainer.GetExportedValue<SyncRegionContextWithHostBehavior>();
Assert.IsNotNull(exported);
}
示例9: SingleBindRegionContextToDependencyObjectBehaviorIsRegisteredWithContainer
public void SingleBindRegionContextToDependencyObjectBehaviorIsRegisteredWithContainer()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
var exported = bootstrapper.BaseContainer.GetExportedValue<BindRegionContextToDependencyObjectBehavior>();
Assert.IsNotNull(exported);
}
示例10: SingleIModuleInitializerIsRegisteredWithContainer
public void SingleIModuleInitializerIsRegisteredWithContainer()
{
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
var exported = bootstrapper.BaseContainer.GetExportedValue<IModuleInitializer>();
Assert.IsNotNull(exported);
}
示例11: RunShouldNotLogAboutInitializingTheShellIfShellIsNotCreated
public void RunShouldNotLogAboutInitializingTheShellIfShellIsNotCreated()
{
const string expectedMessageText = "Initializing shell";
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsFalse(bootstrapper.TestLog.LogMessages.Contains(expectedMessageText));
}
示例12: RunShouldLogAboutInitializingTheShellIfShellCreated
public async Task RunShouldLogAboutInitializingTheShellIfShellCreated()
{
await ExecuteOnUIThread(() =>
{
const string expectedMessageText = "Initializing shell";
var bootstrapper = new DefaultMefBootstrapper() { ShellObject = new UserControl() };
bootstrapper.Run();
Assert.IsTrue(bootstrapper.TestLog.LogMessages.Contains(expectedMessageText));
});
}
示例13: RunShouldLogAboutCreatingTheShell
public void RunShouldLogAboutCreatingTheShell()
{
const string expectedMessageText = "Creating shell";
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsTrue(bootstrapper.TestLog.LogMessages.Contains(expectedMessageText));
}
示例14: RunShouldLogAboutRegisteringFrameworkExceptionTypes
public void RunShouldLogAboutRegisteringFrameworkExceptionTypes()
{
const string expectedMessageText = "Registering Framework Exception Types";
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsTrue(bootstrapper.TestLog.LogMessages.Contains(expectedMessageText));
}
示例15: RunShouldLogAboutConfiguringContainer
public void RunShouldLogAboutConfiguringContainer()
{
const string expectedMessageText = "Configuring MEF container";
var bootstrapper = new DefaultMefBootstrapper();
bootstrapper.Run();
Assert.IsTrue(bootstrapper.TestLog.LogMessages.Contains(expectedMessageText));
}