public ProjectInfo(TestContainerDiscoverer discoverer, PythonProject project) { _project = project; _discoverer = discoverer; _containers = new Dictionary<string, TestContainer>(StringComparer.OrdinalIgnoreCase); project.ProjectAnalyzerChanged += ProjectAnalyzerChanged; RegisterWithAnalyzer(); }
public TestContainer GetTestContainer(PythonProject project, string path) { ProjectInfo projectInfo; if (_projectInfo.TryGetValue(project, out projectInfo)) { TestContainer container; if (projectInfo._containers.TryGetValue(path, out container)) { return container; } } return null; }