I have a function that manually extracts a date.
[TestMethod]
public void TestRemoveTwoDates()
{
String test = "at 06/2/2012 to 12/10/2012";
int[][] actual = String_Parser.RemoveTwoDates(test, "to");
int[][] expected = new int[2][];
expected[0] = new int[3] { 6, 2, 2012 };
expected[1] = new int[3] { 12, 10, 2012 };
CollectionAssert.AreEqual(expected, actual);
}
P.S. Browsing through SO, I realized it isn't good practice to return arrays as they are mutable. But I still wanna know how i can test this other than using a loop to Assert Each element in the array.