// Adds a test container for the given file if it is a test file. // This will first remove any existing container for that file private void AddTestContainerIfTestFile(TestFileCandidate file) { var isTestFile = this.IsTestFile(file.Path); this.RemoveTestContainer(file); // Remove if there is an existing container if (isTestFile) { var container = new CucumberJsTestContainer(this, file.Path.ToLowerInvariant()); this.cachedContainers[container.Source] = container; } }
private CucumberJsTestContainer(CucumberJsTestContainer copy) : this(copy.discoverer, copy.Source) { }