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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user