public int CompareUnitTestElements(IUnitTestElement x, IUnitTestElement y) { if (!(x is JasmineSuiteElement) || !(y is JasmineSuiteElement)) { return(_comparer.Compare(x, y)); } if (x.Id.StartsWith(y.Id)) { return(1); } if (y.Id.StartsWith(x.Id)) { return(-1); } return(string.Compare(x.ShortName, y.ShortName, StringComparison.Ordinal)); }
public int CompareUnitTestElements(IUnitTestElement x, IUnitTestElement y) { return(_unitTestElementComparer.Compare(x, y)); }