From dfabe9235d26b3217192b837109937a092276349 Mon Sep 17 00:00:00 2001 From: Robert Xiao Date: Fri, 10 Apr 2020 02:02:00 -0700 Subject: [PATCH] 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. --- Il2CppTests/TestRunner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppTests/TestRunner.cs b/Il2CppTests/TestRunner.cs index d62c5aa..d944075 100644 --- a/Il2CppTests/TestRunner.cs +++ b/Il2CppTests/TestRunner.cs @@ -59,7 +59,7 @@ namespace Il2CppInspector 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(); - Assert.IsTrue(expected.SequenceEqual(actual)); + CollectionAssert.AreEqual(expected, actual); } } }