private void AddTestContainerIfTestFile(string file)
        {
            var isTestFile = IsTestFile(file);

            RemoveTestContainer(file); // Remove if there is an existing container

            // If this is a test file
            if (isTestFile)
            {
                var container = new ProtractorTestContainer(this, file, ExecutorUri);
                cachedContainers.Add(container);
            }
        }
示例#2
0
 private ProtractorTestContainer(ProtractorTestContainer copy)
     : this(copy.discoverer, copy.Source, copy.ExecutorUri)
 {
     this.timeStamp = copy.timeStamp;
 }
 private ProtractorTestContainer(ProtractorTestContainer copy)
     : this(copy.discoverer, copy.Source, copy.ExecutorUri)
 {
     this.timeStamp = copy.timeStamp;
 }
        private void AddTestContainerIfTestFile(string file)
        {
            var isTestFile = IsTestFile(file);
            RemoveTestContainer(file); // Remove if there is an existing container

            // If this is a test file
            if (isTestFile)
            {
                var container = new ProtractorTestContainer(this, file, ExecutorUri);
                cachedContainers.Add(container);
            }
        }