Use CollectionAssert for better test feedback.

For minor problems with the test output (e.g. one-line changes),
CollectionAssert.AreEqual will show the exact line which is changed, for
much better test feedback.
This commit is contained in:
Robert Xiao
2020-04-10 02:02:00 -07:00
committed by Katy
parent d2b5f9d48b
commit dfabe9235d

View File

@@ -59,7 +59,7 @@ namespace Il2CppInspector
expected = (from l in expected where !string.IsNullOrWhiteSpace(l) select l.Trim()).ToArray(); expected = (from l in expected where !string.IsNullOrWhiteSpace(l) select l.Trim()).ToArray();
actual = (from l in actual where !string.IsNullOrWhiteSpace(l) select l.Trim()).ToArray(); actual = (from l in actual where !string.IsNullOrWhiteSpace(l) select l.Trim()).ToArray();
Assert.IsTrue(expected.SequenceEqual(actual)); CollectionAssert.AreEqual(expected, actual);
} }
} }
} }