예제 #1
0
        public void ProcessFile(IFile psiFile, IUnitTestElementsObserver observer, Func <bool> interrupted)
        {
            var factory  = new UnitTestElementFactory();
            var explorer = new FileExplorer(factory, observer, interrupted);

            psiFile.ProcessDescendants(explorer);
        }
예제 #2
0
 public FileExplorer(UnitTestElementFactory factory, IUnitTestElementsObserver observer, Func <bool> interrupted)
 {
     _factory     = factory;
     _observer    = observer;
     _factory     = factory;
     _observer    = observer;
     _interrupted = interrupted;
 }
예제 #3
0
        protected override void ProcessProject(IProject project, FileSystemPath assemblyPath, MetadataLoader loader, IUnitTestElementsObserver observer, CancellationToken token)
        {
            var factory  = new UnitTestElementFactory();
            var explorer = new MetadataExplorer(factory, observer);

            void ExploreAction(IMetadataAssembly assembly) => explorer.ExploreAssembly(project, assembly, token);

            MetadataElementsSource.ExploreProject(project, assemblyPath, loader, observer, _logger, token, ExploreAction);
        }
예제 #4
0
 public MetadataExplorer(UnitTestElementFactory factory, IUnitTestElementsObserver observer)
 {
     _factory  = factory;
     _observer = observer;
 }
 public UnitTestElementMapperFactory(UnitTestElementFactory elementFactory)
 {
     _elementFactory = elementFactory;
 }
예제 #6
0
 public UnitTestElementMapper(IProject project, TargetFrameworkId targetFrameworkId, UnitTestElementFactory elementFactory)
     : base(project, targetFrameworkId)
 {
     _elementFactory = elementFactory;
 }