Example #1
0
 /// <summary>
 /// Verifies that two sequences contain same elements (by the given comparer) in the same order.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="expected">The first sequence.</param>
 /// <param name="actual">The second sequence.</param>
 /// <param name="comparer">The comparer.</param>
 /// <exception cref="SequenceEqualException">If the sequences turn out not to be equal.</exception>
 public static void SequenceEqual <T>(IEnumerable <T> expected, IEnumerable <T> actual,
                                      IComparer <T> comparer)
 {
     SequenceEqual(expected, actual, comparer.ToEqualityComparer());
 }