/// <summary> /// Creates a navigator. /// </summary> /// <param name="visualStudioManager">The visual studio manager.</param> /// <param name="possiblyRunningInIE">True if the navigator code may be running in IE.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="visualStudioManager"/> is null.</exception> public GallioNavigatorEngine(bool possiblyRunningInIE, IVisualStudioManager visualStudioManager) { if (visualStudioManager == null) throw new ArgumentNullException("visualStudioManager"); this.possiblyRunningInIE = possiblyRunningInIE; this.visualStudioManager = visualStudioManager; }
/// <summary> /// Creates a navigator. /// </summary> /// <param name="visualStudioManager">The visual studio manager.</param> /// <param name="possiblyRunningInIE">True if the navigator code may be running in IE.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="visualStudioManager"/> is null.</exception> public GallioNavigatorEngine(bool possiblyRunningInIE, IVisualStudioManager visualStudioManager) { if (visualStudioManager == null) { throw new ArgumentNullException("visualStudioManager"); } this.possiblyRunningInIE = possiblyRunningInIE; this.visualStudioManager = visualStudioManager; }
private static void AssertExistingInstanceOfVisualStudioCanBeLocated(IVisualStudioManager manager, ILogger logger, VisualStudioVersion version) { IVisualStudio foundVisualStudio = manager.GetVisualStudio(version, false, logger); Assert.IsNotNull(foundVisualStudio, "Since Visual Studio is running, GetVisualStudio should return a valid instance."); Assert.IsFalse(foundVisualStudio.WasLaunched, "Existing instance found so WasLaunched should be false."); foundVisualStudio = manager.GetVisualStudio(version, true, logger); Assert.IsNotNull(foundVisualStudio, "Since Visual Studio is running, GetVisualStudio should return a valid instance."); Assert.IsFalse(foundVisualStudio.WasLaunched, "Existing instance found so WasLaunched should be false."); }