コード例 #1
0
        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;
        }
コード例 #2
0
        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);
        }