예제 #1
0
        // 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;
            }
        }
 // Will remove a test container for a given file path
 private void RemoveTestContainer(TestFileCandidate file)
 {
     ITestContainer container;
     this.cachedContainers.TryRemove(file.Path, out container);
 }
        // 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;
            }
        }
예제 #4
0
        // Will remove a test container for a given file path
        private void RemoveTestContainer(TestFileCandidate file)
        {
            ITestContainer container;

            this.cachedContainers.TryRemove(file.Path, out container);
        }