How do I verify that the expected array is the actual array in MSTest?

Viewed 6551

The following method fails:

[TestMethod]
public void VerifyArrays()
{
    int[] actualArray = { 1, 3, 7 };
    Assert.AreEqual(new int[] { 1, 3, 7 }, actualArray);
}

How do I make it pass without iterating over the collection?

2 Answers
Related