Possible Duplicate:
How to find out whether two string arrays are equal to other
how to assert that both lists contain same items?
string[] arr1 = listvalue.ToArray();
string[] arr2 = listvalueMain.ToArray();
for (int i = 0; i < 5; i++)
{
Assert.AreEqual(arr1[i], arr2[i]);
}
This shows an error.