You can replace this with Assert.Equal(expect, results). Assert.Equal<T> has an overload which takes IEnumerable<T>