private bool IsEqual(RevisionList expectResult, RevisionList testResult) { if (expectResult == null && testResult == null) { return(true); } if (expectResult.Count == testResult.Count) { for (int n = 0; n < expectResult.Count; n++) { if (!IsEqual(expectResult.ElementAt(n), testResult.ElementAt(n))) { return(false); } } return(true); } return(false); }