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)); }
private NSpecTestContainer(NSpecTestContainer other) : this(other.containerDiscoverer, other.sourcePath, other.debugEngines, other.fileService) { timeStamp = other.timeStamp; }