Exemplo n.º 1
0
        public int CompareTo(ITestContainer other)
        {
            const int isSmaller = -1;
            const int isEqual   = 0;

            NSpecTestContainer otherContainer = other as NSpecTestContainer;

            if (otherContainer == null)
            {
                return(isSmaller);
            }

            int sourceCompare = String.Compare(sourcePath, otherContainer.Source, StringComparison.OrdinalIgnoreCase);

            if (sourceCompare != isEqual)
            {
                return(isSmaller);
            }

            return(timeStamp.CompareTo(otherContainer.timeStamp));
        }
Exemplo n.º 2
0
 private NSpecTestContainer(NSpecTestContainer other)
     : this(other.containerDiscoverer, other.sourcePath, other.debugEngines, other.fileService)
 {
     timeStamp = other.timeStamp;
 }