public void Add(ITestContainerDiscoverer containerDiscoverer, string path)
        {
            Remove(path);
            if (IsTestFile(path))
            {
                QmlTestContainer container = new QmlTestContainer(containerDiscoverer,
                                                                  path.ToLowerInvariant());

                cache.Add(container);
            }
        }
Esempio n. 2
0
        public int CompareTo(ITestContainer other)
        {
            QmlTestContainer testContainer = other as QmlTestContainer;

            if (testContainer == null)
            {
                return(-1);
            }

            int result = String.Compare(this.Source, testContainer.Source, StringComparison.OrdinalIgnoreCase);

            if (result != 0)
            {
                return(result);
            }

            return(this.timeStamp.CompareTo(testContainer.timeStamp));
        }
Esempio n. 3
0
 private QmlTestContainer(QmlTestContainer original)
     : this(original.containerDiscoverer, original.Source)
 {
 }