public void WhenRetrievingVsServiceWithVersionNumber_ThenCanGetFromCompositionContainer() { var servicesExports = new ServicesExportProvider(GlobalServiceProvider.Instance); var container = new CompositionContainer(servicesExports); var shell = container.GetExportedValue <IVsUIShell4>(); Assert.NotNull(shell); var shell2 = GlobalServiceProvider.Instance.GetService <SVsUIShell, IVsUIShell>(); Assert.Same(shell, shell2); }
public void WhenRetrievingDTE2_ThenCanGetFromCompositionContainer() { var servicesExports = new ServicesExportProvider(GlobalServiceProvider.Instance); var container = new CompositionContainer(servicesExports); var service1 = container.GetExportedValue <DTE2>(); Assert.NotNull(service1); var service2 = GlobalServiceProvider.Instance.GetService <SDTE, DTE>(); Assert.Same(service1, service2); }
public void WhenRetrievingServiceProvider_ThenSucceeds() { var servicesExports = new ServicesExportProvider(GlobalServiceProvider.Instance); }