To piggyback on this SO question...
How does this test fail?
[TestMethod]
public void DummyTest() {
var expected = new List<List<string>>() {
new List<string>(){ "123456", "25.6", "15", "a" },
new List<string>(){ "123457", "3107450.82", "1", "bcdef" },
new List<string>(){ "123458", "0.01", "900000", "-fgehk" }
};
var actual = new List<List<string>>() {
new List<string>(){ "123456", "25.6", "15", "a" },
new List<string>(){ "123457", "3107450.82", "1", "bcdef" },
new List<string>(){ "123458", "0.01", "900000", "-fgehk" }
};
CollectionAssert.AreEqual(expected, actual);
}
By the way, Assert.IsTrue(expected.SequenceEqual(actual));
also fails.
Is there a better way to test collections of collections?
Using .NET 4.6.1.