コード例 #1
0
            public ProjectInfo(TestContainerDiscoverer discoverer, PythonProject project) {
                _project = project;
                _discoverer = discoverer;
                _containers = new Dictionary<string, TestContainer>(StringComparer.OrdinalIgnoreCase);

                project.ProjectAnalyzerChanged += ProjectAnalyzerChanged;
                RegisterWithAnalyzer();
            }
コード例 #2
0
        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;
        }