private void AddTestContainerIfTestFile(string file) { bool isTestFile = IsPowerShellTestFile(file); RemoveTestContainer(file); // Remove if there is an existing container // If this is a test file if (isTestFile) { _logger.Log(MessageLevel.Diagnostic, "PowerShellTestContainerDiscoverer:AddTestContainerIfTestFile - Is a test file. Adding to cached containers."); var container = new PowerShellTestContainer(this, file, ExecutorUri); _cachedContainers.Add(container); } }
private void AddTestContainerIfTestFile(string file) { bool isTestFile = IsTestFile(file); RemoveTestContainer(file); // Remove if there is an existing container // If this is a test file if (isTestFile) { _logger.Log(MessageLevel.Diagnostic, "PowerShellTestContainerDiscoverer:AddTestContainerIfTestFile - Is a test file. Adding to cached containers."); var container = new PowerShellTestContainer(this, file, ExecutorUri); _cachedContainers.Add(container); } }
private PowerShellTestContainer(PowerShellTestContainer copy) : this(copy._discoverer, copy.Source, copy.ExecutorUri) { _timeStamp = copy._timeStamp; }