/// <summary> /// The get unique ui name of project. /// </summary> /// <param name="pHierarchy"> /// The p hierarchy. /// </param> /// <param name="pbstrUniqueName"> /// The pbstr unique name. /// </param> /// <returns> /// The get unique ui name of project. /// </returns> public int GetUniqueUINameOfProject(IVsHierarchy pHierarchy, out string pbstrUniqueName) { MockIVsProject project = pHierarchy as MockIVsProject; pbstrUniqueName = "Unique name of " + project.FullPath; return(VSConstants.S_OK); }
/// <summary> /// The add project. /// </summary> /// <param name="project"> /// The project. /// </param> public void AddProject(MockIVsProject project) { this._projects.Add(project); foreach (IVsSolutionEvents sink in this._eventSinks) { if (sink != null) { sink.OnAfterOpenProject(project, 1); } } }
/// <summary> /// Initializes a new instance of the <see cref="MockDTEProject"/> class. /// </summary> /// <param name="project"> /// The project. /// </param> public MockDTEProject(MockIVsProject project) { this._project = project; }