Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1c6ed1bd4b
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (27 sloc) 0.865 kb
using System;
using System.Collections.Generic;
using System.Linq;
using Xunit;
namespace ReactiveXaml.Tests
{
public static class EnumerableTestMixin
{
public static void AssertAreEqual<T>(this IEnumerable<T> lhs, IEnumerable<T> rhs)
{
var left = lhs.ToArray();
var right = rhs.ToArray();
try {
Assert.Equal(left.Length, right.Length);
for (int i = 0; i < left.Length; i++) {
Assert.Equal(left[i], right[i]);
}
} catch {
Console.Error.WriteLine("lhs: [{0}]",
String.Join(",", lhs.ToArray()));
Console.Error.WriteLine("rhs: [{0}]",
String.Join(",", rhs.ToArray()));
throw;
}
}
}
}
Jump to Line
Something went wrong with that request. Please try again.