private void RegisterSolutionManager() { dexterSolutionManager = new DexterSolutionManager(new DexterHierarchyService()); uint eventCookie; var solutionService = GetService(typeof(SVsSolution)) as IVsSolution; solutionService.AdviseSolutionEvents(dexterSolutionManager, out eventCookie); dexterSolutionManager.EventCookie = eventCookie; }
public void Setup() { hierarchyServiceMock = new Mock <IDexterHierarchyService>(); manager = new DexterSolutionManager(hierarchyServiceMock.Object); testFilePaths = new List <string>() { "c:\\test1.cs", "c:\\test2.cs" }; hierarchyServiceMock.Setup(service => service.getAllSourceFilePaths(null)).Returns(testFilePaths); }