private static void AssertInequalities(string[] subject) { var reference = new[] { "foo", "bar", "baz" }; IComparer <IEnumerable <string> > comparer = new EnumerableComparer <string>(); Assert.AreEqual(-1, comparer.Compare(reference, subject)); Assert.AreEqual(1, comparer.Compare(subject, reference)); }
private static void AssertCompareEqual(string[] x) { var y = x.Clone() as string[]; IComparer <IEnumerable <string> > comparer = new EnumerableComparer <string>(); Assert.AreEqual(0, comparer.Compare(x, y)); }